If someone want to add a product to the cart from the list view it works fine. But from a product detail page the Error appears:

We can't add this item to your shopping cart right now.

  • check in your logs file, are you getting any error – BornCoder Feb 8 '17 at 9:05
  • Please see the exception log in the var/log directory add exception in your question – Prashant Valanda Feb 8 '17 at 9:08
  • We need the error/exception, please go with your logs and print the exception – Ajay Kumar Dec 18 '17 at 14:54

I have experienced very same situation, and it was because of 2 things mainly.

  1. The write permission for the generated folder.
  2. Still there was an issue with folder owner. The generated folder was under the ownership of root. When I changed that to Apache user, everything went smooth.
  1. check your error by firebug
  2. check your error on var/log if can't see error on step 1
  3. check data post to server when adding product to cart if can't see error on step 2 (make sure data post to server when adding new product is enought)

This error comes because of caching problem. So, enable the cache using

"php bin/magento cache:enable"

then it will work.

  • this is not a solution – Sohaib Khan Jun 1 '17 at 22:36

protected by Community Sep 24 '18 at 5:32

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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