// Autoset id_carrier on the cart constructor + Replace a hookExec()

This commit is contained in:
mDeflotte
2011-11-22 14:09:52 +00:00
parent 927b869601
commit 95a749de8b
4 changed files with 35 additions and 11 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ class AuthControllerCore extends FrontController
if (Configuration::get('PS_CART_FOLLOWING') && (empty($this->context->cookie->id_cart) || Cart::getNbProducts($this->context->cookie->id_cart) == 0))
$this->context->cookie->id_cart = (int)Cart::lastNoneOrderedCart($this->context->customer->id);
// Update cart address
$this->context->cart->delivery_option = '';
$this->context->cart->setDeliveryOption(null);
$this->context->cart->id_address_delivery = Address::getFirstCustomerAddressId((int)($customer->id));
$this->context->cart->id_address_invoice = Address::getFirstCustomerAddressId((int)($customer->id));
$this->context->cart->update();