diff --git a/plugins/woocommerce-admin/changelogs/update-7312-remove-grow-from-obw b/plugins/woocommerce-admin/changelogs/update-7312-remove-grow-from-obw new file mode 100644 index 00000000000..c260f17743c --- /dev/null +++ b/plugins/woocommerce-admin/changelogs/update-7312-remove-grow-from-obw @@ -0,0 +1,4 @@ +Significance: minor +Type: Update + +Removing grow section from local free extensions in OBW diff --git a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/data/extension-benefits.js b/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/data/extension-benefits.js deleted file mode 100644 index 249262e1c7b..00000000000 --- a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/data/extension-benefits.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * External dependencies - */ -import { __ } from '@wordpress/i18n'; - -export const extensionBenefits = [ - { - slug: 'mailpoet', - title: __( - 'All-in-one email marketing by MailPoet', - 'woocommerce-admin' - ), - icon: 'onboarding/mailpoet.png', - description: __( - 'Create and send purchase follow-up emails, newsletters, and promotional campaigns straight from your dashboard.', - 'woocommerce-admin' - ), - }, - { - slug: 'facebook-for-woocommerce', - title: __( 'Market on Facebook', 'woocommerce-admin' ), - icon: 'onboarding/fb-woocommerce.png', - description: __( - 'Grow your business by targeting the right people and driving sales with Facebook.', - 'woocommerce-admin' - ), - }, - { - slug: 'google-listings-and-ads', - title: __( - 'Drive traffic to your store with Google Listings and Ads', - 'woocommerce-admin' - ), - icon: 'onboarding/g-shopping.png', - description: __( - 'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.', - 'woocommerce-admin' - ), - }, - { - slug: 'mailchimp-for-woocommerce', - title: __( 'Contact customers with Mailchimp', 'woocommerce-admin' ), - icon: 'onboarding/mailchimp.png', - description: __( - 'Send targeted campaigns, recover abandoned carts and much more with Mailchimp.', - 'woocommerce-admin' - ), - }, - { - slug: 'creative-mail-by-constant-contact', - title: __( - 'Email marketing for WooCommerce with Creative Mail', - 'woocommerce-admin' - ), - icon: 'onboarding/creativemail.png', - description: __( - 'Create on-brand store campaigns, fast email promotions and customer retargeting with Creative Mail.', - 'woocommerce-admin' - ), - }, -]; diff --git a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/index.js b/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/index.js index fb80541eb35..7edc165c44c 100644 --- a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/index.js +++ b/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/index.js @@ -99,20 +99,9 @@ class BusinessDetails extends Component { extensionInstallationOptions[ 'woocommerce-services:shipping' ] || extensionInstallationOptions[ 'woocommerce-services:tax' ], - install_mailchimp: - extensionInstallationOptions[ 'mailchimp-for-woocommerce' ], - install_mailpoet: extensionInstallationOptions.mailpoet, install_jetpack: extensionInstallationOptions.jetpack, - install_google_listings_and_ads: - extensionInstallationOptions[ 'google-listings-and-ads' ], - install_facebook: - extensionInstallationOptions[ 'facebook-for-woocommerce' ], install_wcpay: extensionInstallationOptions[ 'woocommerce-payments' ], - install_creative_mail: - extensionInstallationOptions[ - 'creative-mail-by-constant-contact' - ], } ); const updates = { diff --git a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/selective-extensions-bundle/index.js b/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/selective-extensions-bundle/index.js index ea02eb30663..7e6bef2f82d 100644 --- a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/selective-extensions-bundle/index.js +++ b/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/selective-extensions-bundle/index.js @@ -22,6 +22,8 @@ import { setAllPropsToValue } from '~/lib/collections'; import { getCountryCode } from '~/dashboard/utils'; import { isWCPaySupported } from '~/task-list/tasks/PaymentGatewaySuggestions/components/WCPay'; +const ALLOWED_PLUGIN_LISTS = [ 'basics' ]; + const generatePluginDescriptionWithLink = ( description, productName, @@ -140,54 +142,6 @@ const installableExtensionsData = [ }, ], }, - { - title: __( 'Grow your store', 'woocommerce-admin' ), - key: 'grow', - plugins: [ - { - key: 'mailpoet', - description: generatePluginDescriptionWithLink( - __( - 'Level up your email marketing with {{link}}MailPoet{{/link}}', - 'woocommerce-admin' - ), - 'mailpoet', - 'https://wordpress.org/plugins/mailpoet/' - ), - }, - { - key: 'google-listings-and-ads', - description: generatePluginDescriptionWithLink( - __( - 'Drive sales with {{link}}Google Listings and Ads{{/link}}', - 'woocommerce-admin' - ), - 'google-listings-and-ads' - ), - }, - { - key: 'mailchimp-for-woocommerce', - description: generatePluginDescriptionWithLink( - __( - 'Contact customers with {{link}}Mailchimp{{/link}}', - 'woocommerce-admin' - ), - 'mailchimp-for-woocommerce' - ), - }, - { - key: 'creative-mail-by-constant-contact', - description: generatePluginDescriptionWithLink( - __( - 'Emails made easy with {{link}}Creative Mail{{/link}}', - 'woocommerce-admin' - ), - 'creative-mail-for-woocommerce' - ), - selected: false, - }, - ], - }, ]; const FreeBadge = () => { @@ -444,8 +398,13 @@ export const SelectiveExtensionsBundle = ( { setLocalInstallableExtensions(); return; } + + const extensions = results.filter( ( list ) => + ALLOWED_PLUGIN_LISTS.includes( list.key ) + ); + const transformedExtensions = transformRemoteExtensions( - results + extensions ); const initialValues = createInitialValues( transformedExtensions, @@ -545,11 +504,8 @@ export const SelectiveExtensionsBundle = ( { { showExtensions && installableExtensions.map( - ( { plugins, title, key: sectionKey } ) => ( + ( { plugins, key: sectionKey } ) => (
-
- { title } -
{ isFetching ? ( ) : (