To enable AJAX functionality in WooCommerce, you can implement it for various use cases like updating the cart, filtering products, or handling other dynamic actions without requiring a full page reload.
Here’s how to enable AJAX in WooCommerce:
1. Enable AJAX Add to Cart for Products #
WooCommerce has a built-in option for enabling AJAX when adding products to the cart.
- Log in to Your WordPress Admin Dashboard.
- Navigate to WooCommerce > Settings > Products.
- Under the General tab, ensure the checkbox for “Enable AJAX add to cart buttons on archives” is selected.
- Click Save changes.

2. Enable AJAX for Product Filters #
To enable AJAX for filtering products (e.g., by category, attributes, or price):
a) Use a Plugin #
Install a plugin like “YITH WooCommerce Ajax Product Filter” or “WooCommerce AJAX Filters”:
- Go to Plugins > Add New and search for the plugin.
- Install and activate it.
- Configure the filter settings under the plugin options to enable AJAX.
