Whenever I add an item to the shopping cart. The quantity displayed on the top menu (SHOPPING CART(0)) is not updated. I was expecting that the quantity would be incremented. What can I do to solve this bug?
These are the steps to reproduce the bug: 1. Shopping Cart is emply 2. Choose a product and Click Add to Cart 3. CURRENT BEHAVIOR: ON the top menu Shopping Cart(0) 4. EXPECTED BEHAVIOR: ON the top menu Shopping Cart(1)
NOTES: If I refresh the page, now it displays 'Shopping Cart(1)'
It works just fine out of the box. Please check it out on the official demo site . So I presume you customized source code some wrong way so it broke the default behavior
P.S. Moved from "bug reports" to "development" forum
The bug only happens if you don't have required fields to proceed with the 'Add to Cart' operation.
In that case, whenever you click on 'Add To Cart' on the catalog, it doesn't open the product page because it doesn't need to, however I would expect the incrementation of the Quantity in the header.
But, on way to solve this, is to always have required fields. Maybe, the situation that I am testing won't happen. So, maybe, my question isn't so important.
I am testing 3.4 and the add to cart buttons for home page products and products in categories do not work. The add to cart button on the product details page does work. I see you have two implementations
Clicking on your demo featured products add to cart button does not add it to the cart. It takes you to the product details page. Same as on my dev server for Featured Products, Home Page products and Products in categories all of which are using _ProductBox and
RE: "...does not add it to the cart. It takes you to the product details page ..."
It depends on the product. In the demo home page, try both HP Pavilion and Build your own computer. The latter has attributes (HDD, OS, etc.), so it goes to the product page to allow the customer to select them.