From 1ce6a555e5b8a365becd0c0c7b1fdfea81165e4d Mon Sep 17 00:00:00 2001 From: aratidgr8 Date: Thu, 10 Oct 2024 14:56:24 +0530 Subject: [PATCH 1/2] PRESS0-2275 fix --- src/components/NoExistingPlan.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/NoExistingPlan.js b/src/components/NoExistingPlan.js index 43d6d163..324a22dd 100644 --- a/src/components/NoExistingPlan.js +++ b/src/components/NoExistingPlan.js @@ -8,6 +8,8 @@ import { Section } from "./Section"; export function NoExistingPlan(props){ const { availableSolutions } = props; + availableSolutions?.sort((a, b) => a.priority - b.priority); + const HtmlContent = ({ htmlString }) => { return (
Date: Thu, 10 Oct 2024 17:50:50 +0530 Subject: [PATCH 2/2] PRESS0-2276 - fixes --- includes/Data/Plugins.php | 36 +++++++++++++- src/components/WPSolutionsBanner.js | 11 +++-- src/constants.js | 74 +++++++++++++++++++---------- 3 files changed, 90 insertions(+), 31 deletions(-) diff --git a/includes/Data/Plugins.php b/includes/Data/Plugins.php index 58212e19..7a3edc21 100644 --- a/includes/Data/Plugins.php +++ b/includes/Data/Plugins.php @@ -48,15 +48,47 @@ final class Plugins { * @var array> $free_plugins */ public static $premium_plugins = array( - // TODO: More plugins to be added here as once their data is available + + //Search Engine Optimization 'wp-seo' => array( 'url' => 'wp-admin/admin.php?page=wpseo_dashboard#top#first-time-configuration', 'file' => 'wordpress-seo/wp-seo.php' ), + //Offer Content Courses 'sensei-lms' => array( - 'url' => 'wp-admin/admin.php?page=wpseo_dashboard#top#first-time-configuration', + 'url' => 'wp-admin/post-new.php?post_type=course', 'file' => 'sensei-lms/sensei-lms.php' ), + //Add An Affiliate Program + 'yith-woocommerce-affiliates' => array( + 'url' => 'wp-admin/admin.php?page=yith_wcaf_panel&tab=settings&sub_tab=settings-general', + 'file' => 'yith-woocommerce-affiliates-premium/init.php' + ), + //Setup Bookings + 'yith-woocommerce-booking' => array( + 'url' => 'wp-admin/edit.php?post_type=yith_booking&yith-plugin-fw-panel-skip-redirect=1', + 'file' => 'yith-woocommerce-booking/init.php' + ), + //Setup A Loyalty Program + 'yith-woocommerce-points-and-rewards' => array( + 'url' => 'wp-admin/admin.php?page=yith_woocommerce_points_and_rewards&tab=points&sub_tab=points-standard', + 'file' => 'yith-woocommerce-points-and-rewards/init.php' + ), + //Setup WishList + 'yith-woocommerce-wishlist' => array( + 'url' => 'wp-admin/admin.php?page=yith_wcwl_panel&tab=settings&sub_tab=settings-general', + 'file' => 'yith-woocommerce-wishlist/init.php' + ), + //Enable Product Reviews + 'yith-woocommerce-advanced-reviews' => array( + 'url' => 'wp-admin/admin.php?page=yith_ywar_panel', + 'file' => 'yith-woocommerce-advanced-reviews/init.php' + ), + //Create a Sales Campaign + 'yith-woocommerce-dynamic-pricing-and-discounts' => array( + 'url' => 'wp-admin/edit.php?post_type=ywdpd_discount&yith-plugin-fw-panel-skip-redirect=1', + 'file' => 'yith-woocommerce-dynamic-pricing-and-discounts/init.php' + ) ); /** diff --git a/src/components/WPSolutionsBanner.js b/src/components/WPSolutionsBanner.js index a15f5fda..eeac83d7 100644 --- a/src/components/WPSolutionsBanner.js +++ b/src/components/WPSolutionsBanner.js @@ -28,7 +28,7 @@ export function WPSolutionsBanner() { "nfd_slug_wonder_cart", () => PluginsSdk.queries - .status("nfd_slug_wonder_cart", "sensei-lms", "wp-seo") + .status("nfd_slug_wonder_cart", "sensei-lms", "wp-seo", "yith-woocommerce-affiliates", "yith-woocommerce-booking", "yith-woocommerce-points-and-rewards", "yith-woocommerce-wishlist", "yith-woocommerce-advanced-reviews", "yith-woocommerce-dynamic-pricing-and-discounts") .then(res => { setPluginActiveStatusArray(res?.details) }), @@ -100,9 +100,9 @@ export function WPSolutionsBanner() { { __(`${details['description']}`,"wp-module-ecommerce") }

{ - details.slug !== "" ? + details.plsSlug !== "" ? Object.entries(pluginActiveStatusArray).map(([slug, { status, url }]) => ( - details.slug === slug ? + details.plsSlug === slug ? status === "active" ?