[Solved] WooCommerce Add to Cart Button Not Working

The Add to Cart button of WooCommerce button might stop working for the following reason-

  1. Theme or Plugin conflict
  2. Memory issues
  3. Wrong Cart or Checkout page link

How can a theme or plugin interfere with the add to cart button?

A WooCommerce compatible theme will have some custom templates to customize the look and feel of several pages. They can also have some JavaScript files to make the user experience better. So the PHP and JavaScript files might conflict with WooCommerce.

How to find out theme or plugin conflict?

  1. Disable all your plugins except WooCommerce and check if that solves the issue.
    1. If deactivating the plugins solves the issue, then it is happening because of plugin conflicts and you need to enable the plugins one by one to find the conflicting plugin.
    2. If that does not help, switch to a default theme.
  2. If switching the theme solves the issue, then something in the theme is conflicting.
    1. If you have bought the theme from ThemeForest or some other site, contact the theme vendor.
    2. If the theme is custom built then you have to check the browser console for error messages. If you do not see any error messages on the console, you can monitor the XHR requests while you click the add to cart button and monitor the request to the server.

I have deactivated all the plugins except WooCommerce and switched to a default theme. But it still does not help!

Then you need to check the memory limit from the WooCommerce → System Status. If it’s below 64MB then that could be an issue. You should always keep your memory limit 128MB for a WooCommerce powered store.

You can also check if there is any change on the cart and checkout pages on the settings or the pages have correct shortcodes.

Your PHP and MySQL version should be 5.6 or higher to use WooCommerce.

If any of the diagnostics and tips does not help, please feel free to comment below. I will get back to you as soon as possible 🙂

4 Comments

  1. The Add to Cart button still not functional across certain devices.
    Tried removing cache,uninstallong the plugins, and a lot. Still facing the same issue.
    https://www.kalapyaar.com

    • Hello Harashanki,
      Sorry for the late reply. I have just checked your site and found out it is working fine. Please let me know if you need any help.

  2. I have tried everything still it is not happening.
    Please help.

    • Hello Saugata,
      I am really sorry to know that this solution is not working for you.

      As you can see, this solution is very old. I think WooCommerce has this functionality built-in.

      If you are unable to find the option, you can post on the WooCommerce support forum on wp.org.

      If you speak Bengali, you can join our Facebook group “WordPressians”. A lot of developers are active in the group and can help you with issues.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.