Merge pull request #17204 from willgorham/fix/cart-shortcode-deprecated-functions
Fix deprecated functions in cart shortcode
This commit is contained in:
commit
cebddcd67c
|
@ -38,8 +38,8 @@ class WC_Shortcode_Cart {
|
|||
WC()->customer->set_location( $country, $state, $postcode, $city );
|
||||
WC()->customer->set_shipping_location( $country, $state, $postcode, $city );
|
||||
} else {
|
||||
WC()->customer->set_to_base();
|
||||
WC()->customer->set_shipping_to_base();
|
||||
WC()->customer->set_billing_address_to_base();
|
||||
WC()->customer->set_shipping_address_to_base();
|
||||
}
|
||||
|
||||
WC()->customer->set_calculated_shipping( true );
|
||||
|
|
Loading…
Reference in New Issue