assets/js/product.js
// so that it shows the # of items in the cart and a quick preview of the cart itself.
so that it shows the # of items in the cart and a quick preview of the cart itself.
so that it shows the # of items in the cart and a quick preview of the cart itself .
function handleSubmit(event) {
  addSelectedItemToCart(event);
  cart.saveToLocalStorage();
  updateCounter();
  updateCartPreview();
}
function handleSubmit ( event ) { addSelectedItemToCart ( event ) ; cart . saveToLocalStorage ( ) ; updateCounter ( ) ; updateCartPreview ( ) ; }
so that it shows the # of items in the cart and a quick preview of the cart itself.
so that it shows the # of items in the cart and a quick preview of the cart itself .
// event.preventDefault(); // TODO: Prevent the page from reloading // console.log(selectElement.options[selectElement.selectedIndex].value, txtQuantity.value); // Do all the things ...