diff --git a/assets/js/checkout.js b/assets/js/checkout.js index 29bae62..4ee6440 100644 --- a/assets/js/checkout.js +++ b/assets/js/checkout.js @@ -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(){