Linux 软件免费装
Banner图

CatCode Smart Filter for WooCommerce

开发者 catcodestudio
更新时间 2026年9月16日 19:36
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce price filter product filter faceted search attribute filter

下载

1.0.0

详情介绍:

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 Requirements

安装:

  1. Upload the plugin folder to /wp-content/plugins/catcode-smart-filter/
  2. Activate it in the "Plugins" menu
  3. Go to WooCommerce → Smart Filter → Facets and import the attributes you want to filter by
  4. Open the "Index" tab and press "Rebuild the index" once
  5. Place the block: the "CatCode: Smart Filter" widget, or the [catcode_filter] shortcode

屏幕截图:

  • The mobile drawer with the "Show N products" button
  • Facets in the admin: source, widget, logic and order
  • The index tab

常见问题:

The filter block does not appear

It renders only where a product listing does — the shop, a product category or tag archive, and product search results. Check that a facet is imported and active, and that the index has been built at least once (WooCommerce → Smart Filter → Index).

Clicking a value reloads the whole page

The AJAX swap needs to know which element holds the product grid. Most themes use ul.products, which is the default; if yours does not, put its selector into "Product grid selector" in the settings.

The counts do not match the listing

Press "Rebuild the index". A count and a listing can only disagree when the index is behind the catalogue — after a bulk import that wrote to the database directly, for example.

Does it work with a page cache?

Yes. Filtered views carry a query string, so they are served fresh; the clean archive stays cacheable. The counts have their own cache with a lifetime you set.

Will Google index thousands of filter URLs?

No. A filtered view is noindex,follow with a canonical pointing at the clean archive. Every filtered combination stays out of the index.

更新日志:

1.0.0