respect SHIPPING_ENABLED in Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/2202)
This commit is contained in:
parent
70f8b48165
commit
32b80c40bb
|
@ -5,6 +5,7 @@ import { __ } from '@wordpress/i18n';
|
||||||
import {
|
import {
|
||||||
SHIPPING_METHODS_EXIST,
|
SHIPPING_METHODS_EXIST,
|
||||||
WC_BLOCKS_ASSET_URL,
|
WC_BLOCKS_ASSET_URL,
|
||||||
|
SHIPPING_ENABLED,
|
||||||
} from '@woocommerce/block-settings';
|
} from '@woocommerce/block-settings';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -164,7 +165,7 @@ export const previewCart = {
|
||||||
items_count: 3,
|
items_count: 3,
|
||||||
items_weight: 0,
|
items_weight: 0,
|
||||||
needs_payment: true,
|
needs_payment: true,
|
||||||
needs_shipping: true,
|
needs_shipping: SHIPPING_ENABLED,
|
||||||
totals: {
|
totals: {
|
||||||
currency_code: 'USD',
|
currency_code: 'USD',
|
||||||
currency_symbol: '$',
|
currency_symbol: '$',
|
||||||
|
|
Loading…
Reference in New Issue