[-] 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
This commit is contained in:
aFolletete committed 2012-05-21 17:16:36 +00:00
1 parent b67a4fdd77
commit 6a56d02c1f
1 file changed
+5
+5
View File
@@ -290,6 +290,10 @@ function deleteProductFromSummary(id)
if (jsonData.refresh) if (jsonData.refresh)
location.reload(); location.reload();
if (parseInt(jsonData.summary.products.length) == 0) if (parseInt(jsonData.summary.products.length) == 0)
{
if (typeof(orderProcess) == 'undefined' || orderProcess != 'order-opc')
document.location.href = document.location.href; // redirection
else
{ {
$('#center_column').children().each(function() { $('#center_column').children().each(function() {
if ($(this).attr('id') != 'emptyCartWarning' && $(this).attr('class') != 'breadcrumb' && $(this).attr('id') != 'cart_title') if ($(this).attr('id') != 'emptyCartWarning' && $(this).attr('class') != 'breadcrumb' && $(this).attr('id') != 'cart_title')
@@ -302,6 +306,7 @@ function deleteProductFromSummary(id)
$('#summary_products_label').remove(); $('#summary_products_label').remove();
$('#emptyCartWarning').fadeIn('slow'); $('#emptyCartWarning').fadeIn('slow');
} }
}
else else
{ {
$('#product_'+ id).fadeOut('slow', function() { $('#product_'+ id).fadeOut('slow', function() {