add: easyship to shipping task for AU, NZ, SG, HK (#41852)
This commit is contained in:
parent
e46d6bd207
commit
762c2ef924
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 17 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 7.4 KiB |
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: add
|
||||
|
||||
Added Easyship promotion to shipping task for AU, NZ, SG, HK. Removed SkydropX.
|
|
@ -122,7 +122,7 @@ class Shipping extends Task {
|
|||
return true;
|
||||
}
|
||||
|
||||
return in_array( $store_country, array( 'CA', 'AU', 'GB', 'ES', 'IT', 'DE', 'FR', 'MX', 'CO', 'CL', 'AR', 'PE', 'BR', 'UY', 'GT', 'NL', 'AT', 'BE' ), true );
|
||||
return in_array( $store_country, array( 'CA', 'AU', 'NZ', 'SG', 'HK', 'GB', 'ES', 'IT', 'DE', 'FR', 'CL', 'AR', 'PE', 'BR', 'UY', 'GT', 'NL', 'AT', 'BE' ), true );
|
||||
}
|
||||
|
||||
return self::has_physical_products();
|
||||
|
|
|
@ -99,7 +99,7 @@ class DefaultShippingPartners {
|
|||
'description' => '',
|
||||
'learn_more_link' => 'https://wordpress.org/plugins/skydropx-cotizador-y-envios/',
|
||||
'is_visible' => array(
|
||||
self::get_rules_for_countries( array( 'MX', 'CO' ) ),
|
||||
self::get_rules_for_countries( array() ), // No countries eligible for SkydropX promotion at this time.
|
||||
),
|
||||
'available_layouts' => array( 'column' ),
|
||||
),
|
||||
|
@ -117,6 +117,48 @@ class DefaultShippingPartners {
|
|||
),
|
||||
'available_layouts' => array( 'column' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Easyship',
|
||||
'slug' => 'easyship-woocommerce-shipping-rates',
|
||||
'description' => __( 'Simplified shipping with: ', 'woocommerce' ),
|
||||
'layout_column' => array(
|
||||
'image' => $asset_base_url . 'easyship-column.svg',
|
||||
'features' => $column_layout_features,
|
||||
),
|
||||
'layout_row' => array(
|
||||
'image' => $asset_base_url . 'easyship-row.svg',
|
||||
'features' => array(
|
||||
array(
|
||||
'icon' => $check_icon,
|
||||
'description' => __( 'Highly discounted shipping rates', 'woocommerce' ),
|
||||
),
|
||||
array(
|
||||
'icon' => $check_icon,
|
||||
'description' => __(
|
||||
'Seamless order sync and label printing',
|
||||
'woocommerce'
|
||||
),
|
||||
),
|
||||
array(
|
||||
'icon' => $check_icon,
|
||||
'description' => __( 'Branded tracking experience', 'woocommerce' ),
|
||||
),
|
||||
array(
|
||||
'icon' => $check_icon,
|
||||
'description' => __( 'Built-in Tax & Duties paperwork', 'woocommerce' ),
|
||||
),
|
||||
array(
|
||||
'icon' => $check_icon,
|
||||
'description' => __( 'Free Plan Available', 'woocommerce' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'learn_more_link' => 'https://woo.com/products/easyship-shipping-rates/',
|
||||
'is_visible' => array(
|
||||
self::get_rules_for_countries( array( 'SG', 'HK', 'AU', 'NZ' ) ),
|
||||
),
|
||||
'available_layouts' => array( 'row', 'column' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Sendcloud',
|
||||
'slug' => 'sendcloud-shipping',
|
||||
|
|
|
@ -126,7 +126,7 @@ class Homescreen {
|
|||
if (
|
||||
( 'US' === $country_code && $is_jetpack_installed )
|
||||
||
|
||||
( ! in_array( $country_code, array( 'CA', 'AU', 'GB', 'ES', 'IT', 'DE', 'FR', 'MX', 'CO', 'CL', 'AR', 'PE', 'BR', 'UY', 'GT', 'NL', 'AT', 'BE' ), true ) )
|
||||
( ! in_array( $country_code, array( 'CA', 'AU', 'NZ', 'SG', 'HK', 'GB', 'ES', 'IT', 'DE', 'FR', 'CL', 'AR', 'PE', 'BR', 'UY', 'GT', 'NL', 'AT', 'BE' ), true ) )
|
||||
||
|
||||
( 'US' === $country_code && false === $is_jetpack_installed && false === $is_wcs_installed )
|
||||
) {
|
||||
|
|
|
@ -157,8 +157,6 @@ class WC_Admin_Tests_OnboardingTasks_Task_Shipping extends WC_Unit_Test_Case {
|
|||
array( 'IT' ),
|
||||
array( 'DE' ),
|
||||
array( 'FR' ),
|
||||
array( 'MX' ),
|
||||
array( 'CO' ),
|
||||
array( 'CL' ),
|
||||
array( 'AR' ),
|
||||
array( 'PE' ),
|
||||
|
|
Loading…
Reference in New Issue