Gustavo Luigi 2022-09-08 12:19:26 +02:00
parent e83c43ab03
commit 988ab96126
1 changed files with 3 additions and 4 deletions

View File

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