[-] FO : blockcart was only able to remove 1 product at a time #PSCFV-4170
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17435 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
e96687636d
commit
181f9fd1b8
1 file changed
+2
-6
@@ -298,11 +298,6 @@ var ajaxCart = {
|
|||||||
if (!stayInTheCart)
|
if (!stayInTheCart)
|
||||||
{
|
{
|
||||||
removedProductId = $(this).attr('id');
|
removedProductId = $(this).attr('id');
|
||||||
//return false; // Regarding that the customer can only remove products one by one, we break the loop
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
//if there is a removed product, delete it from the displayed block cart
|
|
||||||
if (removedProductId != null)
|
if (removedProductId != null)
|
||||||
{
|
{
|
||||||
var firstCut = removedProductId.replace('cart_block_product_', '');
|
var firstCut = removedProductId.replace('cart_block_product_', '');
|
||||||
@@ -326,7 +321,8 @@ var ajaxCart = {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user