Whenever I tried to add product to cart from list page or product page in fresh setup Magento Ce 2.1 release it redirects to checkout page and no product gets added.
I tried disabling cache also.
addtocartmagento2
Whenever I tried to add product to cart from list page or product page in fresh setup Magento Ce 2.1 release it redirects to checkout page and no product gets added.
I tried disabling cache also.
Best Answer
If you ran in local and your path is :localhost please replace "localhost" to "127.0.0.1".
Following:
So you can change root URL by SQL query:
It is sufficient for Magento 1.x but not for Magento 2.0. Magento 2.0 for some strange purpose additionally stores root URL in the third path: design/head/includes
The record looks like:
So you need one more SQL query:
For example:
Then delete the cache: