update delivery address initialization

This commit is contained in:
Shreesh Arora
2024-08-14 18:29:36 +05:30
parent bfaa626b51
commit cfef224288
3 changed files with 33 additions and 2 deletions

View File

@@ -391,7 +391,7 @@ class FrontControllerCore extends Controller
$cart->id_shop = $this->context->shop->id;
if ($this->context->cookie->id_customer) {
$cart->id_customer = (int)$this->context->cookie->id_customer;
$cart->id_address_invoice = (int)$cart->id_address_delivery;
$cart->id_address_invoice = (int)Address::getFirstCustomerAddressId($cart->id_customer);;
} else {
$cart->id_address_invoice = 0;
}