by fradigital on WordPress.org
Assign WooCommerce product categories in bulk using keyword rules. Ideal for batch-imported products without categories.
This plugin helps you save hours of manual work when importing large batches of products that do not have any categories assigned. It allows you to define keyword-based rules per category and apply them in bulk to selected products.
Key Features:
– Create flexible keyword rules per category.
– Supports “OR” logic by default and “AND” logic via special syntax.
– Exclude products via “Not Contains” keywords.
– Bulk-apply rules to selected products in the Products list.
– Import and export rules as JSON files for backup and transfer.
How It Works
1. Create and Save Rules
1.1. Go to WooCommerce > Keyword Category Rules.
1.2. For each existing category, enter:
– Contains: keywords separated by commas (example: shoes, sneakers).
– Not Contains: keywords that should exclude a product (example: damaged, used).
1.3. To require multiple words to appear together, use "AND" (with “”) between them:
– Example: shoes "AND" leather matches titles containing both “shoes” and “leather”.
1.4. Save your rules.
2. Apply Rules to Products
2.1. In the WooCommerce Products list, select the products you want to process.
2.2. In the Bulk Actions menu, choose Apply Keyword-Based Category Rules, then click Apply.
2.3. The plugin will evaluate all selected products, assign matching categories, and show a success notice.
Limitations:
– This plugin does not automatically assign categories to new products when they are created or imported. The assignment must be triggered manually via Bulk Actions.
– The matching is performed against the product title only.
Disclaimer:
This plugin is an independent project and is not affiliated with WooCommerce, Automattic, or any related brands.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.