Correct filter counts after a bulk product change, with JetSmartFilters (beta)
After changing many products or categories, rebuild the JetSmartFilters index so the counts next to each filter match the shop again.
- Difficulty
- Beginner
- Time
- about 10 min
- Works with
- JetSmartFilters
I just changed [what, e.g. the categories of 40 products and the stock of the summer range]. List my JetSmartFilters filters with their type, data source and whether the indexer is on. If it is, rebuild the index and tell me how many rows it holds before and after. Then clear the caches and take a screenshot of [shop page with filters] so I can check the counts.
Already connected?
If SAR is already in your AI app, this is enough:
Rebuild the JetSmartFilters index after my product changes and show me [shop page].
What happens
- The AI app lists the filters: each one's type, label, data source, taxonomy and query variable, and its indexer: on or off, automatic or not, and rows indexed.
- If the indexer is on, it rebuilds the index with JetSmartFilters' own indexer, as its Index button does. If it is off, there is no index to rebuild and it tells you so.
- Only the counts the filters show change; products, prices and categories stay as they are.
- It lists the filters again for the new row count, clears the site's caches and takes a screenshot of the shop page.
Approvals involved
Nothing here changes your site: no approval needed.
wordpress_list_smart_filtersJetSmartFilters filtersNonewordpress_reindex_smart_filtersRebuild the JetSmartFilters indexNonewordpress_clear_cacheClear cachesNonesar_screenshot_pageScreenshot a pageNone
What you get
Filters that show the right number of products next to each choice, straight after your bulk change.
Related recipes
- Agencies · about 15 minWhat a JetEngine site is built from, before you take it over (beta)Before quoting for or taking over a Crocoblock site, get a plain map of its JetEngine post types, content types, relations, options pages, filters and templates.
- Shop · about 10 minPrices shown the Greek way, 29,90 €, with metric unitsUse a comma for decimals and the euro sign after the price, weigh in kilos and measure in centimetres, then see a product page to check the look.
- Shop · about 10 minYour best sellers marked as featuredFind what sold best lately, mark those products as featured so the blocks that show featured products pick them up, and unmark the old ones.
Try it on your own site
Install the plugin, add SAR to your AI app and paste the prompt. Free to start.