From 087c170023cb570144ecbd161ece6dc88d701efa Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Mon, 25 Jun 2012 15:31:12 +0000 Subject: [PATCH] // Fix bug with multishipping on user login with OPC --- themes/default/js/order-opc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/themes/default/js/order-opc.js b/themes/default/js/order-opc.js index 738d316bd..72e9ab35a 100644 --- a/themes/default/js/order-opc.js +++ b/themes/default/js/order-opc.js @@ -357,6 +357,12 @@ function updateNewAccountToAddressBlock() }); } $('#opc_new_account').fadeIn('fast', function() { + + //After login, the products are automatically associated to an address + $.each(json.summary.products, function() { + updateAddressId(this.id_product, this.id_product_attribute, '0', this.id_address_delivery); + }); + updateCartSummary(json.summary); updateAddressesDisplay(true); updateCarrierList(json.carrier_data);