Onboarding: Add another option to platforms. (https://github.com/woocommerce/woocommerce-admin/pull/3471)
* Onboarding: Add another option to platforms. * Add revenue question for other woo store. * Add new option value to REST enum.
This commit is contained in:
parent
2df87c674d
commit
44748bb16e
|
@ -124,7 +124,9 @@ class BusinessDetails extends Component {
|
||||||
} else if ( 'revenue' === name ) {
|
} else if ( 'revenue' === name ) {
|
||||||
if (
|
if (
|
||||||
! values.revenue.length &&
|
! values.revenue.length &&
|
||||||
[ 'other', 'brick-mortar', 'brick-mortar-other' ].includes( values.selling_venues )
|
[ 'other', 'brick-mortar', 'brick-mortar-other', 'other-woocommerce' ].includes(
|
||||||
|
values.selling_venues
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
errors.revenue = __( 'This field is required', 'woocommerce-admin' );
|
errors.revenue = __( 'This field is required', 'woocommerce-admin' );
|
||||||
}
|
}
|
||||||
|
@ -369,6 +371,10 @@ class BusinessDetails extends Component {
|
||||||
key: 'other',
|
key: 'other',
|
||||||
label: __( 'Yes, on another platform', 'woocommerce-admin' ),
|
label: __( 'Yes, on another platform', 'woocommerce-admin' ),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 'other-woocommerce',
|
||||||
|
label: __( 'Yes, I own a different store powered by WooCommerce', 'woocommerce-admin' ),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'brick-mortar',
|
key: 'brick-mortar',
|
||||||
label: __( 'Yes, in person at physical stores and/or events', 'woocommerce-admin' ),
|
label: __( 'Yes, in person at physical stores and/or events', 'woocommerce-admin' ),
|
||||||
|
@ -441,7 +447,7 @@ class BusinessDetails extends Component {
|
||||||
{ ...getInputProps( 'selling_venues' ) }
|
{ ...getInputProps( 'selling_venues' ) }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{ [ 'other', 'brick-mortar', 'brick-mortar-other' ].includes(
|
{ [ 'other', 'brick-mortar', 'brick-mortar-other', 'other-woocommerce' ].includes(
|
||||||
values.selling_venues
|
values.selling_venues
|
||||||
) && (
|
) && (
|
||||||
<SelectControl
|
<SelectControl
|
||||||
|
|
|
@ -284,6 +284,7 @@ class OnboardingProfile extends \WC_REST_Data_Controller {
|
||||||
'other',
|
'other',
|
||||||
'brick-mortar',
|
'brick-mortar',
|
||||||
'brick-mortar-other',
|
'brick-mortar-other',
|
||||||
|
'other-woocommerce',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'revenue' => array(
|
'revenue' => array(
|
||||||
|
|
Loading…
Reference in New Issue