In Magento 2 I've updated it to latest version to solve cart issue.

When I click on Add to Cart Button it redirect me to cart page(Even in backend "After Adding a Product Redirect to Shopping Cart" I've set it to No) and it always show Cart is empty and after click Add to cart button I'm getting following error in my console.

enter image description here

In my backend cookie setting is as follow ...

enter image description here

Also there is no session folder in var

How can I solve this issue??

Let me know if you want more information.

1 Answer 1


Well, I've removed Magento default class columns and product-info-main in from the div so that's why add to cart didn't work but after adding those class again as it was add to cart has started working properly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.