Pro add-on · Store

AJAX Filters for WordPress

Sidebar facets that refresh the shop grid without a page reload.

$199/yr or $549 once — all 35 add-ons Same admin as the free core Enable or disable without losing data
What it does

AJAX Filters, in practice.

The [ambikly_filters] shortcode renders an aside with published-category checkboxes, minimum and maximum price inputs, a sort selector (default, popularity, newest, price ascending and descending) and a Reset button. Any change is debounced for 250 ms and sent to GET /ambikly-pro/v1/filtered-products, which returns published products matching the selected category ids, price range and the term in the core shop search box, paginated at up to 60 per page. Popularity is computed from units sold on non-cancelled orders. The script replaces the contents of the element carrying data-ambikly-products-grid with cards that use the same markup as the server-rendered grid, discards stale responses, and shows an error message if a request fails.

CapabilitiesStore
  • Category, price range and sort facets from one shortcode
  • Grid refreshes 250 ms after the last change
  • Popularity sort computed from real order history
  • Search term from the core shop box carried through
  • Only published categories offered and accepted
  • Per page capped at 60; pagination in the response
  • Cards use the storefront's own product-card markup
  • Stale responses ignored; error message on failure
Where it shows up

Storefront, admin and settings.

On the storefront

  • [ambikly_filters] sidebar shortcode
  • Category checkboxes, Min and Max price inputs, Sort by selector
  • Reset filters button
  • Loading and error states on the product grid

Settings you control

  • Whether the category checklist is shown
  • Whether the price range inputs are shown
  • Attribute filters toggle (no attribute facet is rendered in the current release)
For developers

Routes and hooks.

Built on the same Addon SDK as every other Pro add-on — extend it instead of replacing it.

REST routes

  • GET /ambikly-pro/v1/filtered-products

Core hooks it listens to

  • wp_enqueue_scripts
  • rest_api_init
When it earns its place

Three stores that want AJAX Filters.

1

Home goods with broad categories

A homeware store lists hundreds of products across kitchen, bath and decor. Shoppers tick two categories and set a price ceiling, and the grid updates in place while they adjust, so they refine the list rather than reloading the page after every change.

2

Budget-driven gift shopping

A gift store's visitors often shop to a budget. Entering a maximum price narrows the grid immediately, and switching the sort to price low-to-high puts the most affordable items first, all without the shopper leaving the page or losing their category choices.

3

Refining a search result

A shopper on a tool store searches for 'drill' using the core shop box, then ticks the Cordless category in the sidebar. The search term travels with the request, so the grid shows cordless drills rather than every cordless product in the catalog.

Setup

From toggle to live in a few minutes.

  1. Enable it

    Ambikly → Add-ons → AJAX Filters → toggle on. Pro must be active; nothing else to install.

  2. Set it up

    Open its settings panel and set: whether the category checklist is shown; whether the price range inputs are shown; attribute filters toggle (no attribute facet is rendered in the current release).

  3. Find it in use

    The storefront surfaces, admin screens and settings it adds are listed under “Where it shows up” above; nothing needs placing by hand unless a shortcode is named there.

  4. Turn it off without losing anything

    Disable the add-on from the same screen. Its settings and data stay in place, and a lapsed license pauses it the same way — the store keeps running.

FAQ

About AJAX Filters.

Where do I put the filter widget?

Drop [ambikly_filters] in a sidebar or column next to the shop grid. The script targets the first element with data-ambikly-products-grid or the ambikly-products-grid class, which the shop, search and archive shortcodes all render, and rewrites that grid in place.

Can I filter by attributes like size or color?

Not in the current release. The settings panel includes an attribute filters toggle, but the shortcode renders only the category checklist, price range and sort selector. Products can be narrowed by category and price, and any search term typed into the shop box is preserved.

How is the Popularity sort calculated?

The endpoint joins order items to orders whose status is not cancelled or failed, sums quantities per product in one pass, and sorts by that total. Products with no sales sort last. Newest uses the product's created date, and the two price options sort by regular price.

Does applying a filter drop the customer's search term?

No. Before each request the script reads the value of the core shop search box and passes it as the search parameter, which matches name and SKU. A shopper who searched for 'lamp' and then ticks a category sees only lamps in that category.

Get AJAX Filters with every other add-on.

Pro is $199 a year or $549 once, for all 35 add-ons. Enable this one from the same admin the day you need it.