[-] FO : fixed bug #PSCFV-2382 - Your shopping cart is empty not appear and the right column go to the left side
This commit is contained in:
@@ -291,16 +291,21 @@ function deleteProductFromSummary(id)
|
|||||||
location.reload();
|
location.reload();
|
||||||
if (parseInt(jsonData.summary.products.length) == 0)
|
if (parseInt(jsonData.summary.products.length) == 0)
|
||||||
{
|
{
|
||||||
$('#center_column').children().each(function() {
|
if (typeof(orderProcess) == 'undefined' || orderProcess != 'order-opc')
|
||||||
if ($(this).attr('id') != 'emptyCartWarning' && $(this).attr('class') != 'breadcrumb' && $(this).attr('id') != 'cart_title')
|
document.location.href = document.location.href; // redirection
|
||||||
{
|
else
|
||||||
$(this).fadeOut('slow', function () {
|
{
|
||||||
$(this).remove();
|
$('#center_column').children().each(function() {
|
||||||
});
|
if ($(this).attr('id') != 'emptyCartWarning' && $(this).attr('class') != 'breadcrumb' && $(this).attr('id') != 'cart_title')
|
||||||
}
|
{
|
||||||
});
|
$(this).fadeOut('slow', function () {
|
||||||
$('#summary_products_label').remove();
|
$(this).remove();
|
||||||
$('#emptyCartWarning').fadeIn('slow');
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#summary_products_label').remove();
|
||||||
|
$('#emptyCartWarning').fadeIn('slow');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -784,4 +789,4 @@ function updateExtraCarrier(id_delivery_option, id_address)
|
|||||||
$('#HOOK_EXTRACARRIER_'+id_address).html(jsonData['content']);
|
$('#HOOK_EXTRACARRIER_'+id_address).html(jsonData['content']);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user