In Magento 2.2.5, I want to clear/empty cart before the current product addtocart.

Check the below scenario:

  1. Added the new product to cart, Up to cart page user not logged In. I have disabled guest checkout, so it will ask to login.

  2. Suppose the customer already added a product in cart and not placed order means it will be in cart. That will add with current cart. But it should not.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.