From a706fa1ceade5688d26c4e24c845dc4c48b48a0b 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16125 b9a71923-0436-4b27-9f14-aed3839534dd --- 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);