Store profiler: Business Details steps changes (https://github.com/woocommerce/woocommerce-admin/pull/6503)

* Added "MailPoet" option to Business Details step

This commit adds the "MailPoet" option to Business Details step in the OBW

* Fixed plugins order

* Creative Mail option toggled off by default

This commit toggles off the Creative Mail option by default

* Fixed copy and image URL

* Added mailpoet.png image

* Added changelog

# Conflicts:
#	readme.txt

* Added testing instructions

# Conflicts:
#	TESTING-INSTRUCTIONS.md

* Fixed key

* Fixed lint error

* Fixed testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
This commit is contained in:
Fernando 2021-03-09 15:00:34 -03:00 committed by GitHub
parent 84467d4f2a
commit 5b368f4227
8 changed files with 49 additions and 13 deletions

View File

@ -8,6 +8,7 @@
2. Navigate to Analytics->Reports.
3. Note that all the reports exist and navigating to those reports works as expected.
4. Check that report menu items are marked active when navigating to that page.
### Add navigation container tests #6464
1. On a new site, finish the store setup wizard, but don't hide the task list.
@ -24,6 +25,23 @@
4. Navigate to other tasks such as "Store Details" or "Add products" .
5. The "Preview Site" should not be shown on the other tasks.
### Store profiler - Added MailPoet to Business Details step #6503
- Create a brand new site and go to the OBW.
- In the first OBW step (`Store Details`) set a Country / Region other than `US | BR | FR | ID | GB | DE | VN | CA | PL | MY | AU | NG | GR | BE | PT | DK | SE | JP` (e.g.: Uruguay).
- Continue with the profiler.
- In the 4th step (`Business Details`) choose any of the options in both selectors.
- Verify that the displayed extensions are:
```
Mailpoet
Facebook
Google Ads
Mailchimp
Creative Mail
```
(In that order)
- Verify that the Creative Mail option is toggled off by default.
### Fix double prefixing of navigation URLs #6460
1. Register a navigation menu item with a full URL or admin link.

View File

@ -4,6 +4,15 @@
import { __ } from '@wordpress/i18n';
export const extensionBenefits = [
{
slug: 'mailpoet',
title: __( 'Email Marketing by WooCommerce', 'woocommerce-admin' ),
icon: 'onboarding/mailpoet.png',
description: __(
'The default all-in-one solution for WooCommerce email. Powered by MailPoet.',
'woocommerce-admin'
),
},
{
slug: 'facebook-for-woocommerce',
title: __( 'Market on Facebook', 'woocommerce-admin' ),
@ -13,6 +22,18 @@ export const extensionBenefits = [
'woocommerce-admin'
),
},
{
slug: 'kliken-marketing-for-google',
title: __(
'Drive traffic to your store with Google Ads & Marketing by Kliken',
'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' ),
@ -34,16 +55,4 @@ export const extensionBenefits = [
'woocommerce-admin'
),
},
{
slug: 'kliken-marketing-for-google',
title: __(
'Drive traffic to your store with Google Ads & Marketing by Kliken',
'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'
),
},
];

View File

@ -68,14 +68,18 @@ class BusinessDetails extends Component {
? businessExtensions.includes(
'creative-mail-by-constant-contact'
)
: true,
: false,
'kliken-marketing-for-google': businessExtensions
? businessExtensions.includes( 'kliken-marketing-for-google' )
: true,
mailpoet: businessExtensions
? businessExtensions.includes( 'mailpoet' )
: true,
install_extensions: true,
};
this.extensions = [
'mailpoet',
'facebook-for-woocommerce',
'mailchimp-for-woocommerce',
'kliken-marketing-for-google',
@ -137,6 +141,7 @@ class BusinessDetails extends Component {
install_facebook: businessExtensions.includes(
'facebook-for-woocommerce'
),
install_mailpoet: businessExtensions.includes( 'mailpoet' ),
install_mailchimp: businessExtensions.includes(
'mailchimp-for-woocommerce'
),

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -54,4 +54,5 @@ export const pluginNames = {
),
'kliken-marketing-for-google': __( 'Google Ads', 'woocommerce-admin' ),
'woo-razorpay': __( 'Razorpay', 'woocommerce-admin' ),
mailpoet: __( 'MailPoet', 'woocommerce-admin' ),
};

View File

@ -104,6 +104,7 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt
- Add: Remote Inbox Notifications rule to trigger when WooCommerce Admin is upgraded. #6040
- Feature: Increase target audience for business feature step. #6508
- Fix: Crash of Analytics > Settings page when Gutenberg is installed. #6540
- Dev: Store profiler - Added MailPoet to Business Details step #6503
== 2.1.0 ==

View File

@ -359,6 +359,7 @@ class OnboardingProfile extends \WC_REST_Data_Controller {
'creative-mail-by-constant-contact',
'facebook-for-woocommerce',
'kliken-marketing-for-google',
'mailpoet',
),
'type' => 'string',
),

View File

@ -765,6 +765,7 @@ class Onboarding {
'woo-razorpay' => 'woo-razorpay/woo-razorpay.php',
'mollie-payments-for-woocommerce' => 'mollie-payments-for-woocommerce/mollie-payments-for-woocommerce.php',
'payu-india' => 'payu-india/index.php',
'mailpoet' => 'mailpoet/mailpoet.php',
)
);
return array_merge( $plugins, $onboarding_plugins );