{"id":18322,"date":"2024-12-20T04:45:01","date_gmt":"2024-12-20T04:45:01","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=18322"},"modified":"2024-12-20T04:45:02","modified_gmt":"2024-12-20T04:45:02","password":"","slug":"how-to-enable-ajax-on-woocommerce","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/","title":{"rendered":"How to enable Ajax on WooCommerce"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>Here&#8217;s how to enable AJAX in WooCommerce:<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Enable AJAX Add to Cart for Products<\/strong><\/h3>\n\n\n\n<p>WooCommerce has a built-in option for enabling AJAX when adding products to the cart.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Log in to Your WordPress Admin Dashboard.<\/strong><\/li>\n\n\n\n<li>Navigate to <strong>WooCommerce > Settings > Products<\/strong>.<\/li>\n\n\n\n<li>Under the <strong>General<\/strong> tab, ensure the checkbox for <strong>&#8220;Enable AJAX add to cart buttons on archives&#8221;<\/strong> is selected.<\/li>\n\n\n\n<li>Click <strong>Save changes<\/strong>. <\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"336\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200-1024x336.png\" alt=\"\" class=\"wp-image-18323\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200-1024x336.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200-300x99.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200-768x252.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200.png 1343w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Enable AJAX for Product Filters<\/strong><\/h3>\n\n\n\n<p>To enable AJAX for filtering products (e.g., by category, attributes, or price):<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">a) Use a Plugin<\/h4>\n\n\n\n<p>Install a plugin like <strong>&#8220;YITH WooCommerce Ajax Product Filter&#8221;<\/strong> or <strong>&#8220;WooCommerce AJAX Filters&#8221;<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Plugins > Add New<\/strong> and search for the plugin.<\/li>\n\n\n\n<li>Install and activate it.<\/li>\n\n\n\n<li>Configure the filter settings under the plugin options to enable AJAX.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"464\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-201-1024x464.png\" alt=\"\" class=\"wp-image-18324\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-201-1024x464.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-201-300x136.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-201-768x348.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-201.png 1204w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1838],"doc_tag":[],"class_list":["post-18322","docs","type-docs","status-publish","hentry","doc_category-wordpress"],"year_month":"2026-06","word_count":152,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Kibera","author_nicename":"dan-k","author_url":"https:\/\/truehost.com\/support\/author\/dan-k\/"},"doc_category_info":[{"term_name":"WordPress","term_url":"https:\/\/truehost.com\/support\/docs-category\/wordpress\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to enable Ajax on WooCommerce -<\/title>\n<meta name=\"description\" content=\"To enable AJAX functionality in WooCommerce, you can implement it for various use cases like updating the cart and filtering as below guided.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable Ajax on WooCommerce -\" \/>\n<meta property=\"og:description\" content=\"To enable AJAX functionality in WooCommerce, you can implement it for various use cases like updating the cart and filtering as below guided.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-20T04:45:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200-1024x336.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-enable-ajax-on-woocommerce\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-enable-ajax-on-woocommerce\\\/\",\"name\":\"How to enable Ajax on WooCommerce -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-enable-ajax-on-woocommerce\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-enable-ajax-on-woocommerce\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/image-200-1024x336.png\",\"datePublished\":\"2024-12-20T04:45:01+00:00\",\"dateModified\":\"2024-12-20T04:45:02+00:00\",\"description\":\"To enable AJAX functionality in WooCommerce, you can implement it for various use cases like updating the cart and filtering as below guided.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-enable-ajax-on-woocommerce\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-enable-ajax-on-woocommerce\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-enable-ajax-on-woocommerce\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/image-200-1024x336.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/image-200-1024x336.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-enable-ajax-on-woocommerce\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to enable Ajax on WooCommerce\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable Ajax on WooCommerce -","description":"To enable AJAX functionality in WooCommerce, you can implement it for various use cases like updating the cart and filtering as below guided.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"How to enable Ajax on WooCommerce -","og_description":"To enable AJAX functionality in WooCommerce, you can implement it for various use cases like updating the cart and filtering as below guided.","og_url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/","article_modified_time":"2024-12-20T04:45:02+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200-1024x336.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/","url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/","name":"How to enable Ajax on WooCommerce -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/#primaryimage"},"image":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200-1024x336.png","datePublished":"2024-12-20T04:45:01+00:00","dateModified":"2024-12-20T04:45:02+00:00","description":"To enable AJAX functionality in WooCommerce, you can implement it for various use cases like updating the cart and filtering as below guided.","breadcrumb":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200-1024x336.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/12\/image-200-1024x336.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-enable-ajax-on-woocommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to enable Ajax on WooCommerce"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/18322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=18322"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/18322\/revisions"}],"predecessor-version":[{"id":18325,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/18322\/revisions\/18325"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=18322"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=18322"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=18322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}