From d16de2f7740c6d2e72e222076bc50404affbb97f Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 21 Mar 2013 15:22:42 +0100 Subject: [PATCH] [-] FO : update total_product_price_X when customized product after login --- themes/default/js/cart-summary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/default/js/cart-summary.js b/themes/default/js/cart-summary.js index 6531ffd47..8847fb46d 100644 --- a/themes/default/js/cart-summary.js +++ b/themes/default/js/cart-summary.js @@ -223,7 +223,7 @@ function updateAddressId(id_product, id_product_attribute, old_id_address_delive }); }); - line.attr('id', line.attr('id').replace(/_\d+$/, '_' + id_address_delivery)).removeClass('address_' + old_id_address_delivery).addClass('address_' + id_address_delivery).find('span[id^=cart_quantity_custom_], input[name^=quantity_], .cart_quantity_down, .cart_quantity_up, .cart_quantity_delete').each(function(){ + line.attr('id', line.attr('id').replace(/_\d+$/, '_' + id_address_delivery)).removeClass('address_' + old_id_address_delivery).addClass('address_' + id_address_delivery).find('span[id^=cart_quantity_custom_], span[id^=total_product_price_], input[name^=quantity_], .cart_quantity_down, .cart_quantity_up, .cart_quantity_delete').each(function(){ if (typeof($(this).attr('name')) != 'undefined') $(this).attr('name', $(this).attr('name').replace(/_\d+(_hidden|)$/, '_' + id_address_delivery)); if (typeof($(this).attr('id')) != 'undefined')