Add address_1 to shipping packages info

This commit is contained in:
claudiulodro 2018-10-03 14:31:35 -04:00
parent 4cbdcf2d1b
commit 84e5de5eef
1 changed files with 1 additions and 0 deletions

View File

@ -1317,6 +1317,7 @@ class WC_Cart extends WC_Legacy_Cart {
'postcode' => $this->get_customer()->get_shipping_postcode(),
'city' => $this->get_customer()->get_shipping_city(),
'address' => $this->get_customer()->get_shipping_address(),
'address_1' => $this->get_customer()->get_shipping_address(), // Provide both address and address_1 for backwards compatibility.
'address_2' => $this->get_customer()->get_shipping_address_2(),
),
'cart_subtotal' => $this->get_displayed_subtotal(),