Hi all,
My boss has asked me to try to resolve a problem as a favor to one of his distributors. So, I have no experience with Magento....
On their front page, they have products which have "Add to Cart" links. When a user clicks on those links, they are taken to a empty cart page. The site is: https://www.cantabile-genesis.com/index.php/
They are running Magento 1.9.3.2. My research on StackOverflow indicates that the link should contain a form_key parameter, which it does.
So, at this point, I'm stuck.
Any suggestions would be more than welcome.
Mike.
Hello mdiehldieh5f64,
It's hard to imagine the consequences of an inactive add-to-cart button for an e-commerce store. Your customers can't make the purchase, which both reduces revenue and reduces the store experience.
Usually, when the user presses the add to cart button from the homepage, it shows the message stating item has been added to the cart. But actually, the cart shows a refreshed page and is empty. However, the reason for this problem might be due to the cache. So, enable all cache options from Magento Admin Panel to resolve this issue.
You can follow the steps below to fix the "add to cart is not working" issue,
Magento Add to Cart button is not working on the Categories and Product Page:
When a user adds a product to the cart from the categories or product page, they are redirected to the checkout page with an empty cart. It occurs because of the domain change, as Magento stores the root URL in the third path without affecting the first version.
In order to resolve the issue, you can follow the below methods:
UPDATE core_config_data SET value = REPLACE(value, '<old root URL or domain>', '<new root URL or domain>') WHERE path = 'design/head/includes';
rm -rf var/cache/*
Thus, I hope the above solution helps you to fix the "add to cart is not working and cart is empty" issue.
------------------------------
Regards,
Rex M
AccuWeb Hosting | Magento Hosting