cancel
Showing results for 
Search instead for 
Did you mean: 

cart quantity issue with the shopping cart

cart quantity issue with the shopping cart

Working in the PayPal Sandbox, when I purchase a product, after the purchase the cart does not zero out, the quantity remains showing on the cart icon. Going back to shopping and clicking on the icon shows the item just purchased still in the cart. Adding another product adds that item to the cart (now 2 items in cart) and when going to the cart the two items are there and totaled for both items. Sometimes, however, clicking on a different product prior to going back to the cart causes the cart to zero. This can't happen in the real world. A customer can't be charged again for an item they just purchased.

1 REPLY 1

Re: cart quantity issue with the shopping cart

@blueplanetphoto 

 

You can try to reload cart after success or just check that it is cookie/ cache issue?

or you can find below files to debug too

app/design/frontend///Magento_Checkout/templates/cart/noItems.phtml
app/design/frontend///Magento_Checkout/templates/success.phtml

<script>
require([
     'Magento_Customer/js/customer-data'
 ], function (customerData) {
     var sections = ['cart'];
     customerData.invalidate(sections);
     //customerData.reload(sections, true);
 });
</script>

 

 

Manish Mittal
https://www.manishmittal.com/