Don't display shipping address if shipping is disabled
This commit is contained in:
parent
f0fe86a8ac
commit
249380562a
|
@ -13,7 +13,7 @@ global $woocommerce;
|
||||||
|
|
||||||
$customer_id = get_current_user_id();
|
$customer_id = get_current_user_id();
|
||||||
|
|
||||||
if ( get_option('woocommerce_ship_to_billing_address_only') == 'no' ) {
|
if ( get_option('woocommerce_ship_to_billing_address_only') == 'no' && get_option('woocommerce_calc_shipping') !== 'no' ) {
|
||||||
$page_title = apply_filters( 'woocommerce_my_account_my_address_title', __( 'My Addresses', 'woocommerce' ) );
|
$page_title = apply_filters( 'woocommerce_my_account_my_address_title', __( 'My Addresses', 'woocommerce' ) );
|
||||||
$get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array(
|
$get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array(
|
||||||
'billing' => __( 'Billing Address', 'woocommerce' ),
|
'billing' => __( 'Billing Address', 'woocommerce' ),
|
||||||
|
|
Loading…
Reference in New Issue