Linux 软件免费装
Banner图

Category Children Coupons for WooCommerce

开发者 runthingsdev
更新时间 2026年1月22日 04:56
PHP版本: 8.0 及以上
WordPress版本: 6.9
版权: GPLv3 or later
版权网址: 版权信息

标签

categories woocommerce coupons subcategories restrictions

下载

1.4.1

详情介绍:

Category Children Coupons for WooCommerce provides a complete replacement for WooCommerce's built-in coupon category restrictions with additional flexibility: Include children mode: Select a parent category and all its subcategories are automatically included. With WooCommerce's default restrictions, selecting "Clothing" only matches products directly in that category - not products in "T-Shirts" or "Trousers" subcategories. This plugin includes the entire category tree. Exclude children mode: Match only the specific categories you select, without including subcategories. This mirrors WooCommerce's built-in behavior but is managed within this plugin's unified interface. Future-proof coupons: The plugin stores your category selection and dynamically expands child categories at validation time - new subcategories are automatically included (or excluded) without editing existing coupons. Features How It Works When you select a category in an "(incl. children)" field, the plugin automatically includes all subcategories during validation. When you use an "(excl. children)" field, only the exact categories you select are matched. Selected categories with children included are validated at usage time, so the current children are automatically used, even if they have changed since the coupon was set up.

安装:

  1. Upload the plugin files to the /wp-content/plugins/runthings-category-children-coupons directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Go to Marketing > Coupons and edit or create a coupon.
  4. In the "Usage restriction" tab, you will see four new category fields - two with "(incl. children)" and two with "(excl. children)" labels.

屏幕截图:

  • A percentage coupon correctly applied only to products in the allowed category.
  • A product from an excluded category shows no discount applied.
  • Warning notice when both WooCommerce's built-in and this plugin's category fields are used together.

升级注意事项:

1.4.1 Point release for plugin directory launch. 1.4.0 New "excl. children" category fields added - match exact categories without subcategories. Complete replacement for WooCommerce's built-in category restrictions. 1.3.0 Plugin renamed for WordPress.org compliance. Coupon settings auto-migrate. Filter hook renamed (old hook still works with deprecation notice).

常见问题:

How does this differ from WooCommerce's built-in category restrictions?

WooCommerce's built-in "Product categories" field only matches products directly assigned to the selected categories. This plugin provides both options: "(incl. children)" fields automatically include all subcategories, while "(excl. children)" fields match only the exact categories you select - giving you complete control.

Can I use both this plugin's fields and WooCommerce's built-in category fields?

Not recommended. The built-in category check runs before custom plugin checks. They operate as separate restrictions (AND logic). If you use both, a coupon must first pass the built-in category rules, which may cause unexpected results. This plugin provides "(excl. children)" fields that mirror WooCommerce's built-in behavior, so you can use this plugin as a complete replacement without needing WooCommerce's built-in fields.

What happens if I add new subcategories later?

They are automatically included! The plugin checks category relationships at validation time, so new subcategories are picked up immediately.

Does this work with AutomateWoo?

Yes! When AutomateWoo generates coupons from a template coupon, the category restrictions are automatically copied to the generated coupon.

更新日志:

1.4.1 - 21st January 2026 1.4.0 - 18th January 2026 1.3.0 - 16th January 2026 1.2.0 - 15th January 2026 1.1.0 - 12th January 2026 1.0.2 - 6th January 2026 1.0.1 - 4th January 2026 1.0.0 - 19th December 2025