Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some fixes based on testing with staging Hiive #358

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions includes/Data/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ final class Plugins {
'url' => 'wp-admin/admin.php?page=wpseo_dashboard#top#first-time-configuration',
'file' => 'sensei-lms/sensei-lms.php'
),
'yith-woocommerce-affiliates' =>array(
'url' => 'wp-admin/admin.php?page=bluehost#/wonderblocks-example',
'file' => 'yith-woocommerce-affiliates-premium/init.php'
)
);

/**
Expand Down
4 changes: 2 additions & 2 deletions src/components/WPSolutionsBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export function WPSolutionsBanner() {
<Button
className="nfd-button nfd-button--primary nfd-mt-9 nfd-mt-auto nfd-self-start"
as="button"
data-nfd-installer-plugin-slug={slug}
data-nfd-installer-plugin-provider={details.providerName}
data-nfd-installer-plugin-slug={details.plsSlug}
data-nfd-installer-plugin-provider={details.plsProviderName}
data-nfd-installer-plugin-activate={true}
isLoading={status==="installing"}
>
Expand Down
38 changes: 25 additions & 13 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const wonderCartPopularCampaignsList = [
}
];

//TODO: To add slug & providerName information for all plugins once it is available
//TODO: To add slug & plsProviderName information for all plugins once it is available
export const wpSolutionsPromotedPluginsList = [
{
"WP_SOLUTION_CREATOR": [
Expand All @@ -54,28 +54,32 @@ export const wpSolutionsPromotedPluginsList = [
description: "Build webpages fast with tailored block patterns and page templates included in your hosting package.",
buttonText: "Add a Page to Your Site",
slug: "",
providerName: ""
plsSlug: "",
plsProviderName: ""
},
{
title: "SEARCH ENGINE OPTIMIZATION",
description: "Start increasing your search result rankings today.",
buttonText: "Improve Your Search Ranking",
slug: "wp-seo",
providerName: ""
plsSlug: "",
plsProviderName: ""
},
{
title: "OFFER CONTENT COURSES",
description: "Create beautiful and engaging online courses, lessons, and quizzes.",
buttonText: "Create a Course",
slug: "sensei-lms",
providerName: ""
plsSlug: "",
plsProviderName: ""
},
{
title: "ADD AN AFFILIATE PROGRAM",
description: "Grant your affiliates earnings each time someone purchases from their link.",
buttonText: "Create an Affiliate Program",
slug: "",
providerName: ""
plsProviderName: "yith",
plsSlug: "yith-woocommerce-affiliates"
}
],
"WP_SOLUTION_SERVICE": [
Expand All @@ -84,28 +88,32 @@ export const wpSolutionsPromotedPluginsList = [
description: "Manage the renting or booking of services and items that you offer your customers.",
buttonText: "Setup Bookings",
slug: "",
providerName: ""
plsSlug: "",
plsProviderName: ""
},
{
title: "WEBPAGE CREATION",
description: "Build webpages fast with tailored block patterns and page templates.",
buttonText: "Add a Page to Your Site",
slug: "",
providerName: ""
plsSlug: "",
plsProviderName: ""
},
{
title: "SEARCH ENGINE OPTIMIZATION",
description: "Start increasing your search result rankings today.",
buttonText: "Improve Your Search Ranking",
slug: "wp-seo",
providerName: ""
plsSlug: "",
plsProviderName: ""
},
{
title: "SETUP A LOYALTY PROGRAM",
description: "Reward customer loyalty with an effective points program.",
buttonText: "Configure Points & Rewards",
slug: "",
providerName: ""
plsSlug: "",
plsProviderName: ""
},

],
Expand All @@ -115,28 +123,32 @@ export const wpSolutionsPromotedPluginsList = [
description: "Let customers add products to lists and share them with family and friends.",
buttonText: "Setup Wishilsts",
slug: "",
providerName: ""
plsSlug: "",
plsProviderName: ""
},
{
title: "ENABLE PRODUCT REVIEWS",
description: "Get positive product reviews and use social proof to drive more sales.",
buttonText: "Enable Product Reviews",
slug: "",
providerName: ""
plsSlug: "",
plsProviderName: ""
},
{
title: "CREATE A SALES CAMPAIGN",
description: "Create custom upsell, cross-sell and other promotional campaigns to generate more sales.",
buttonText: "Create a Campaign",
slug: "nfd_slug_wonder_cart",
providerName: ""
plsSlug: "",
plsProviderName: ""
},
{
title: "SEARCH ENGINE OPTIMIZATION",
description: "Start increasing your search result rankings today.",
buttonText: "Improve Your Search Ranking",
slug: "wp-seo",
providerName: ""
plsSlug: "",
plsProviderName: ""
},

],
Expand Down
Loading