Linux 软件免费装

Category Combination Restrictions for WooCommerce

开发者 senff
更新时间 2026年5月25日 19:18
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv3
版权网址: 版权信息

标签

categories cart restrict restrictions

下载

1.0

详情介绍:

Category Combination Restrictions for WooCommerce lets you define pairs of product categories whose items can never appear in the cart at the same time. The restriction is bidirectional: if a product from Category A is in the cart, products from Category B cannot be added, and vice versa.

安装:

Installation from within WordPress
  1. Visit Plugins > Add New.
  2. Search for Category Combination Restrictions.
  3. Install and activate the Category Combination Restrictions plugin.
  4. Go to WooCommerce → Settings → Category Combination Restrictions to start setting up restrictions.
Manual installation
  1. Upload the entire category-combination-restrictions-for-woocommerce folder to the /wp-content/plugins/ directory.
  2. Visit Plugins.
  3. Activate the Category Combination Restrictions plugin.
  4. Go to WooCommerce → Settings → Category Combination Restrictions to start setting up restrictions.

屏幕截图:

  • Product can not be added (shop page)
  • Product can not be added (product page)

升级注意事项:

1.0 Initial release of the plugin.

常见问题:

What does it do exactly?

Sometimes you do not want customers to purchase products from specific different categories at the same time. For example, they can buy something from the TOYS category, and they can buy something from the CLOTHING category, but not at the same time. So once they have a product from the TOYS category in the cart, they can't add something from the CLOTHING category, or vice versa. This plugin lets you do that and restricts products from certain categories to be in the cart together.

Why?

Maybe products from Category A are shipped from one warehouse, and products from Category B are shipped from another warehouse, and you want every order to contain products from the same warehouse. Or maybe products from Category C have free shipping, and products from Category D require shipping costs and having those products in the same order complicates your shipping. There's a few situations where this will be useful!

I want people to be able to order TOYS and APPAREL → WOMEN together, but not any -other- subcategories from APPAREL (MEN and KIDS).

Don't create a restriction between TOYS and APPAREL. Instead, you would need to set up 2 restrictions:

  • TOYS and APPAREL → MEN
  • TOYS and APPAREL → KIDS With this setup, TOYS can be purchased together with products from APPAREL → WOMEN, but TOYS can not be purchased with products from any other subcategory in APPAREL.

I need more help please!

If you're not sure how to use this, or you're running into any issues with it, post a message on the plugin's WordPress.org support forum.

I've noticed that something doesn't work right, or I have an idea for improvement. How can I report this?

Category Combination Restrictions's community support forum at https://wordpress.org/support/plugin/category-combination-restrictions-for-woocommerce would a good place, though if you want to add all sorts of -technical- details, it's best to report it on the plugin's Github page at https://github.com/senff/WooCommerce-Category-Combination-Restrictions/issues . This is also where I consider code contributions.

My question isn't listed here?

Please go to the plugin's community support forum at https://wordpress.org/support/plugin/category-combination-restrictions-for-woocommerce and post a message. Note that support is provided on a voluntary basis and that it can be difficult to troubleshoot, and may require access to your admin area. Needless to say, NEVER include any passwords of your site on a public forum!

更新日志:

1.0