From 6a56d02c1f3270ee45440f31c1c28e95218ea862 Mon Sep 17 00:00:00 2001 From: aFolletete Date: Mon, 21 May 2012 17:16:36 +0000 Subject: [PATCH] [-] FO : fixed bug #PSCFV-2382 - Your shopping cart is empty not appear and the right column go to the left side git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15553 b9a71923-0436-4b27-9f14-aed3839534dd --- themes/default/js/cart-summary.js | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/themes/default/js/cart-summary.js b/themes/default/js/cart-summary.js index e7161198e..ad7f7f5b3 100644 --- a/themes/default/js/cart-summary.js +++ b/themes/default/js/cart-summary.js @@ -291,16 +291,21 @@ function deleteProductFromSummary(id) location.reload(); if (parseInt(jsonData.summary.products.length) == 0) { - $('#center_column').children().each(function() { - if ($(this).attr('id') != 'emptyCartWarning' && $(this).attr('class') != 'breadcrumb' && $(this).attr('id') != 'cart_title') - { - $(this).fadeOut('slow', function () { - $(this).remove(); - }); - } - }); - $('#summary_products_label').remove(); - $('#emptyCartWarning').fadeIn('slow'); + if (typeof(orderProcess) == 'undefined' || orderProcess != 'order-opc') + document.location.href = document.location.href; // redirection + else + { + $('#center_column').children().each(function() { + if ($(this).attr('id') != 'emptyCartWarning' && $(this).attr('class') != 'breadcrumb' && $(this).attr('id') != 'cart_title') + { + $(this).fadeOut('slow', function () { + $(this).remove(); + }); + } + }); + $('#summary_products_label').remove(); + $('#emptyCartWarning').fadeIn('slow'); + } } else { @@ -784,4 +789,4 @@ function updateExtraCarrier(id_delivery_option, id_address) $('#HOOK_EXTRACARRIER_'+id_address).html(jsonData['content']); } }); -} \ No newline at end of file +}