master
parent
e83c43ab03
commit
988ab96126
|
@ -80,10 +80,9 @@ $(window).on('load', function(){
|
|||
});
|
||||
let cart = products.join('\n')+"\nTotal Price: "+numberToEuroFormat(totalPrice);
|
||||
$('#ccart').val(cart);
|
||||
console.log($('form').serializeArray());
|
||||
//objProducts = [];
|
||||
//localStorage.setItem("products", JSON.stringify(objProducts));
|
||||
//form.unbind('submit').submit();
|
||||
objProducts = [];
|
||||
localStorage.setItem("products", JSON.stringify(objProducts));
|
||||
form.unbind('submit').submit();
|
||||
});
|
||||
});
|
||||
$(document).on('click', '.btn-remove-product', function(){
|
||||
|
|
Loading…
Reference in New Issue