WooCommerce Ajax Product Filters

Bluehost Shared Hosting

WooCommerce AJAX product filters and loadmore features

SS WooCommerce Ajax Filters (SSWCAF) is a simple yet powerful WordPress plugin created for Ajax Filtering of WooCommerce products. The plugin lets you filter products based on multiple attributes, price range, publish date, popularity, average rating, etc.

How it works

SSWCAF comes with five built in widgets (Attributes, price range, sorting order, stock status and reset all). Using these widgets you can place as many instances of attributes as needed. For example, consider three widget instances for color, size and brand attribute. Your visitor can filter products based on color, brand, size, price range, etc.

Attribute terms that have zero matching products in the current filtered set remain visible but are shown in a disabled state so users can still see the full filter list.

Key features

  • 5 built in widgets (Attribute filters, Price range, Sorting options, Stock Status, Reset all)
  • AJAX product query based on filter attributes selected
  • AJAX load more button for product archives and shop page
  • Structured price range UI (min/max rows with add/remove) for unlimited range sets
  • Reset all filters at once
  • Attributes query can be set as AND or OR from widget options
  • Attribute terms with zero count remain visible but disabled (not hidden)
  • Material design style preloader spinner
  • Localization ready with sample .po and .mo files
  • Filter arguments based on native WooCommerce functioning
  • Works with Chrome, Safari and Firefox

Why choose this plugin? (Pros)

  • Easy to set up and configure.
  • Works on all archive pages including category, tags, search and attribute archives.
  • Each filter result pushes a URL which is WooCommerce friendly. i.e. users can bookmark and access that page even when the plugin is not active.
  • Allows unlimited instances of attribute widgets. Not just limited to size or color, filter your products based on brand, length, weight, or any such attribute.
  • Create unlimited price range sets of any custom value.
  • Filter based on stock status. Can also show out-of-stock items only.
  • Clean and well coded plugin based on WordPress standards.
  • Dedicated support for any plugin related query.

Limitations (Cons)

  • Category filtering not available yet.
  • Live search not available.
  • Purely based on AJAX. i.e. the plugin will not work without JavaScript.
  • Pagination is replaced by AJAX load more for proper functioning.

Plugin Support

All support is provided via comments section and email. For any questions related to the plugin or general query, feel free to email me from my profile page message box, or comment on the item comments section. I would be glad to respond. Thank you for browsing the plugin.

Important: The data and images shown in live demo are not included in plugin. They are only for demonstration purpose.

Update log

== Nov 26, 2026 = = 2.1.3 = * Security: Strict validation for Products Container and Sidebar Container CSS selectors (only simple #id / .class chains allowed) * Security: Server-side and client-side selector sanitization with safe fallbacks * Security: Prevent raw statusText from being injected into the DOM on AJAX load-more errors * Security: Harden sidebar ID sanitization on settings save  = 2.1.2 = * UI: Pure CSS checkbox squares and radio circles for attribute/filter lists (no external icon fonts) * Removed custom preloader feature * Set "Filtering per selection" as default action   - Removed "Apply" and "Clear" per widget   - Removed "Hide action buttons" checkbox per widget * Removed "Session Storage" feature  = 2.1.1 = * Fix: PHP 8.2 deprecation – stop assigning dynamic properties on WC_Query (filtered_product_ids_for_taxonomy, layered_nav_post__in) * UI: Remove Material Icons checkbox/radio glyphs; use native WooCommerce layered-nav styling for filter lists  = 2.1.0 = * Feature: Structured admin UI for Price Range widget (min/max number fields with Add/Remove rows) * Improvement: Price ranges still stored as validated min,max|min,max string; invalid rows dropped on save * Improvement: Admin CSS/JS assets versioned with plugin release * Security: Client-side AJAX query hardening (allowlists, encodeURIComponent, same-origin guard)  = 2.0.0 = * Security: Sanitized and escaped all request inputs and outputs * Security: Added settings sanitization callback; escaped admin fields * Security: Restricted custom preloader HTML via wp_kses_post * Security: Hardened stock status, price and attribute query parameter handling * Feature: Attribute/price terms with zero product count stay visible but disabled (no longer hidden) * Feature: Filter widgets remain visible after AJAX filtering even when some terms have no matches * Compatibility: Updated for WordPress 7.1 and WooCommerce 11.3.1 * Compatibility: Declared Requires Plugins header; improved HPOS declaration * Compatibility: Modernized get_terms usage and WC Product Attributes Lookup integration with fallback * Improvement: Proper asset versioning for cache busting * Improvement: Coding standards, ABSPATH guards, and PHP 7.4+ practices across all files * Improvement: Removed obsolete category walker; cleaner layered nav counting * Fix: Sorting widget respects default catalog orderby from WooCommerce settings * Fix: Stock status validation limited to allowed values
= June 19, 2024 / v1.9.0 = * Added compatibility for High-Performance Order Storage (HPOS) of WooCommerce * Tested and ensured compatibility with WordPress 6.5.4 and WooCommerce 9.0.0
= Aug 13, 2022 / v1.8.0 = * Fixed: Product count in widgets shall update after each ajax result * Fixed: Product sorting widget list shall display "Default sorting" as selected item * Refactor: Price range widget now updates product count based on attribute selection * Tested and ensured compatibility with WordPress 6.0.1 and WooCommerce 6.8.0
= Mar 02, 2022 / v1.7.0 = * Tested and ensured compatibility with WordPress 5.9.1 and WooCommerce 6.2.1 * Tested compatibility upto php 7.4.9 * Tested support of widgets in block editor * Improved CSS loading animation with less size * Reduced size of frontend JavaScript file by 56%
= Feb 12, 2018 / v1.6.0 = * Improved product sorting widget to allow adding or removing sorting options via filters     - See documentation's FAQ for filter reference * Added filter for disabling ajax loadmore feature     - Useful when using third party infinite scroll plugins     - See documentation's FAQ for filter reference
= Nov 18, 2017 / v1.5.3 = * Fixed: Category term link error in WordPress 4.9
= Jan 09, 2017 / v1.5.2 = * Fixed: Side panel toggle issue on mobile when "filtering per selection" enabled * Changed default panel ID to #sswcaf-shop-sidebar to avoid conflict with themes
= Dec 24, 2016 / v1.5.1 = * Fixed wrong product count in price range widget
= Dec 21, 2016 / v1.5.0 = * Added product count for price range widget
= Sep 12, 2016 / v1.4.0 = * Added sorting based on Stock Status (In stock, Out of stock, All) * Show attributes even if the product count is 0. (Helpful in changing query if the immediate previous query had no results).
= Jun 21, 2016 / v1.3.1 = * Added RTL language support
= Jun 20, 2016 / v1.3.0 = * Added compatibility with WooCommerce 2.6+
= May 13, 2016 / v1.2.0 = * Added sliding sidebar option for mobile (See plugin settings for options)
= Apr 25, 2016 / v1.1.0 = * Added option for ajax filtering per attribute click * Added .pot translation file * Escaped and sanitized translatable text strings
= Jan 20, 2016 / v1.0.0 = * initial release

Credits

jQuery library (as shipped with WordPress)
Material Design Icons

3.7 average based on 3 ratings.

SaurabhSharma

SaurabhSharma

Visit Author's Portfolio

View Portfolio
Last Update 2026-11-27
Created 2016-01-20
Sales 130
Discussion Comments
Compatible Browsers Firefox Safari Chrome
Software Version WordPress 7.1.x WordPress 7.0.x WordPress 6.9.x WordPress 6.8.x WordPress 6.7.x WordPress 6.6.x WordPress 6.5.x WordPress 6.4.x
Compatible With WooCommerce 10.x.x WooCommerce 9.x.x WooCommerce 8.x.x
Gutenberg Optimized Yes
High Resolution Yes
Files Included JavaScript JS CSS PHP
Video Preview Resolution