Remove product items from mini-cart in Magento 2
Remove product items from mini-cart if shopping cart empty.
Problem 01:
In Magento 2, if you remove shopping cart items (from quote table) manually then you will notice that the items in mini-cart still exist because of mini-cart do not get items list from quote table.
Problem 02:
In Magento 2, sometimes mini-cart does not go to empty (but shopping cart is empty) after successfully order posting
Solution:
To remove product items from mini-cart if shopping cart empty. Write the given code in the header/footer or in the specified page where do you want to make empty the mini-cart.
Thanks
Leave a Reply
You must be logged in to post a comment.