The "Add to cart" button changes to "adding" and stays like that. It does nothing after that.It doesn't work from anywhere not even product details page.
Asked
Active
Viewed 4,673 times
2
-
give me the url of website – faizanbeg Jan 04 '17 at 12:26
-
`http://localhost/magento2.0/home-furniture/sofa-armchairs.html` – Ali Rehman Jan 04 '17 at 12:28
-
this is localhost url give me server url.. – faizanbeg Jan 04 '17 at 12:29
-
i'm testing on localhost – Ali Rehman Jan 04 '17 at 12:31
-
ok check your console is there any error after clicking button – faizanbeg Jan 04 '17 at 12:32
-
no there are no errors – Ali Rehman Jan 06 '17 at 05:31
-
1Check magento log file for error descriptions. – Dhiren Vasoya Jan 17 '17 at 11:41
2 Answers
3
Change your base URL from localhost
to 127.0.0.1
.
Using localhost
as the domain in your base URL causes problems in Magento 2.
Magento's base URL configuration is located in the core_config_data
table. The following value
s may need to be changed:
web/unsecure/base_url
web/secure/base_url
For example, if you previously had http://localhost/yourproject/
, you should change it to http://127.0.0.1/yourproject/
After changing the url, flush the cache (bin/magento cache:flush
). You might also need to clear out your var directories.

P S
- 435
- 1
- 8
- 26