Shipping task smart default: add exceptions (https://github.com/woocommerce/woocommerce-admin/pull/5312)
* Require Jetpack connected and WCS active to mark the shipping task as complete * Require country _not_ be in AU, NZ, or UK to mark shipping methods as complete * Bump CI Co-authored-by: Rebecca Scott <me@becdetat.com>
This commit is contained in:
parent
f6cd6c25c8
commit
b8adfaaa94
|
@ -94,6 +94,12 @@ export function getAllTasks( {
|
|||
purchaseAndInstallText = sprintf( purchaseAndInstallFormat, itemName );
|
||||
}
|
||||
|
||||
const shippingCompleted =
|
||||
shippingZonesCount > 0 &&
|
||||
isJetpackConnected &&
|
||||
activePlugins.includes( 'woocommerce-services' ) &&
|
||||
! [ 'AU', 'NZ', 'UK' ].includes( countryCode );
|
||||
|
||||
const tasks = [
|
||||
{
|
||||
key: 'store_details',
|
||||
|
@ -218,7 +224,7 @@ export function getAllTasks( {
|
|||
} );
|
||||
updateQueryString( { task: 'shipping' } );
|
||||
},
|
||||
completed: shippingZonesCount > 0,
|
||||
completed: shippingCompleted,
|
||||
visible:
|
||||
( productTypes && productTypes.includes( 'physical' ) ) ||
|
||||
hasPhysicalProducts,
|
||||
|
|
Loading…
Reference in New Issue