WOOF by Category

描述

WOOF by Category is a WooCommerce Product Filter (WOOF) extension, which allows users to set up different WOOF filters in different categories.

Plugin has an Options page on the backend to set up relationships between any WooCommerce product category and any set of WOOF filters. Only selected filters will be shown on the selected category page and its children. Please see screenshots.

It is possible to set up any number of category->filters pairs.

屏幕截图

安装

Minimum Requirements

  • PHP version 7.4 or greater
  • WooCommerce 3.0 or greater
  • WooCommerce Product Filter (WOOF) plugin

Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers itself, and you don’t need to leave your web browser. To do an automatic installation of WOOF by Category, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field, type “WOOF by Category” and click Search Plugins. Once you’ve found our plugin, you can view details about it such as the point release, rating and description. Most importantly, you can install it by simply clicking “Install Now”.

Manual installation

The manual installation method involves downloading our plugin and uploading it to your webserver via your favourite FTP application. The WordPress codex contains instructions on how to do this here.

Updating

Automatic updates should work like a charm; as always, though, ensure you back up your site just in case.

常见问题

How to use additional product taxonomies, not only product_cat?

Add this code to your theme’s functions.php file:

function wbc_product_categories_filter( $categories ) {
    return array_merge( $categories, [ 'tax-1', 'tax-2' ] );
}

add_filter( 'wbc_product_categories', 'wbc_product_categories_filter' );

where tax-1, tax-2 are additional product taxonomies to use with the plugin.

Where can I get support or talk to other users?

If you get stuck, you can ask for help in the WOOF by Category Plugin Forum.

评价

2022 年 1 月 6 日 1 回复
Очень полезный плагин если у Вас в магазине больше одной категории товаров и много атрибутов.
2021 年 12 月 19 日 1 回复
Nice, simple and most important – works! Nice to have: – could also include Meta Data filters – CSS in woof-by-category-admin.css could be improved (plugin could be more user friendly)
2020 年 10 月 5 日
Спасибо автору за крутой и бесплатный плагин! Пока все норм работает. Из пожеланий: по удобнее интерфейс настройки. Он хоть и понятен, но не очень удобен, тем что все как то по вкладкам надо прыгать и нет общей картины.
阅读所有19条评价

贡献者及开发者

「WOOF by Category」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「WOOF by Category」插件已被翻译至 5 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「WOOF by Category」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

3.3.3

  • Added compatibility with HUSKY 1.3.9 and later.
  • The settings page was moved from a top-level admin menu item to Settings > WOOF by Category.
  • Fixed category-specific filters on the shop page when WOOF reads settings before WooCommerce registers the product_cat taxonomy.

3.3.2

  • Fixed fatal error caused by deployment on wp.org.
  • Tested with WordPress 7.1.

3.3.0

  • Minimal PHP version is now 7.4.
  • Minimal WordPress version is now 6.0.
  • Tested with WooCommerce 11.2.1.

3.2.0

  • Tested with WordPress 6.7.
  • Tested with WooCommerce 9.3.
  • Fixed deprecation error in wp_kses.

3.1.1

  • Tested with WordPress 6.5.
  • Tested with WooCommerce 8.8.
  • Fixed deprecation message caused by FILTER_SANITIZE_STRING constant.

3.1.0

  • Tested with WordPress 6.2.
  • Tested with WooCommerce 8.6.
  • The minimum required WordPress version is now 5.0

3.0.1

  • Dropped support for PHP 5.6. The minimum required PHP version is now 7.0.
  • Tested with WordPress 6.3.
  • Tested with WooCommerce 7.9.

See changelog for all versions.