Hi,
Does anyone know which cookie handles the shopping cart items ?
I guess it’s one of those 4
But I’d like to be sure to remove the right one.
Details on the objective :
I’d like to create an “empty shopping cart” button. I’m thinking of a little javascript like this one >
<script>
$('#emptycart').click(function(){
document.cookie = 'COOKIE-NAME=; expires=Thu, 01 Jan 1970 00:00:01 GMT; Domain=.XXX.com; path=/';
window.location.href = "www.XXX.com";
});
</script>
Anyone tried that before ?