外掛標籤
開發者團隊
② 後台搜尋「CatCode Smart Filter for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
Most WooCommerce filters ask the database the same expensive question on every click — join the attribute tables, join the meta tables, count. On a catalogue of a few thousand products that question takes seconds, and the shopper leaves before the answer arrives.
This plugin keeps its own flat index of “which product carries which value”, rebuilt in the background and kept current by every product save. Filtering reads that one table, so the query cost stops growing with the number of attributes.
What it does
Facets from product attributes, from any product taxonomy (categories, tags, brands) and from a custom field.
Checkboxes, radio buttons, a select, a range slider or a toggle — per facet.
Price slider in the shop’s display currency, an “in stock / out of stock” facet and a rating facet.
Honest counts next to every value: a count tells you what you will get, and the value you already picked keeps showing its siblings instead of collapsing to itself.
Values with no products are hidden — or shown greyed out, if you prefer the shopper to see the whole range.
Numeric values sort as numbers: 1.5 / 2 / 10 / 12.5, not the alphabetical 1.5 / 10 / 12.5 / 2 every term-sorted filter shows.
Applying a filter does not reload the page: the listing and the filter block are swapped in place and the URL goes into the browser history, so Back works and the link can be copied and shared.
Mobile drawer with a “Show N products” button, so the count is visible before the tap.
Chips for what is currently applied, with a one-click reset.
Readable URLs: ?ccf=pa_color:червоний;p:100-2500 — one state has exactly one URL, so nothing turns into a duplicate.
Crawl control out of the box: a filtered view is noindex,follow with a canonical back to the clean archive, and the shop keeps its crawl budget.
Placement as a widget or through the [catcode_filter] shortcode.
Works with the theme’s own product grid — the swapped selector is a setting, ul.products by default.
Merging duplicate values: 12 В, 12в and 12 V become one checkbox while the products keep their own terms.
As many facets as your catalogue needs — nothing here is capped or time-limited.
HPOS (custom order tables) compatible.
Requirements
WooCommerce 6.0 or newer
WordPress 6.2 or newer
PHP 7.4+
