
Main Assignment Screen
Assign WooCommerce shipping classes to products by category, saving time and avoiding bulk edit limitations.
Automatic installation is the easiest option — WordPress will handle the file transfer, and you won’t need to leave your web browser. To do an automatic installation of Shipping Class By Category For Woocommerce, log in to your WordPress dashboard, navigate to the Plugins menu, and click “Add New.”
In the search field type “Shipping Class By Category For Woocommerce” then click “Search Plugins.” Once you’ve found us, you can view details about it such as the point release, rating, and description. Most importantly, of course, you can install it by clicking “Install Now,” and WordPress will take it from there.
Manual installation method requires downloading the Shipping Class By Category For Woocommerce plugin and uploading it to your web server via your favorite FTP application. The WordPress codex contains instructions on how to do this here.
Shipping Class By Category For WooCommerce allows you to assign shipping classes to products based on their category in just a few clicks. Instead of manually editing each product or facing the limitations of bulk editing (which often fails with large product counts), this plugin lets you assign shipping classes efficiently, even for stores with thousands of products.
manage_woocommerce capability can perform operations$wpdb->prepare() for all database queriesWooCommerce’s built-in bulk editing feature is limited to 999 products and may cause server crashes on low-memory setups. Shipping Class By Category For WooCommerce solves this issue by using batch processing through AJAX, ensuring smooth operation even for large stores. This plugin automates the assignment process, allowing you to apply shipping classes to entire categories, saving hours of manual work.
Plugin gives you an option to show the shipping class assigned to the product on the product table in the WordPress admin panel products listing page
“WooCommerce is not active” error
“Security check failed” error
Slow processing
Memory errors
The plugin has its own debug flag so you can get detailed logs without flooding your general debug log with unrelated WordPress noise.
To enable plugin-level debug logging, add all three lines to your wp-config.php:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'SCBCFW_DEBUG', true );
All three must be present and set to true. Removing or omitting SCBCFW_DEBUG disables plugin logging even if WordPress debug mode is on.
Logs are written to /wp-content/debug.log and are prefixed with [SCBCFW] so they are easy to filter. Each entry includes the product ID, the category being checked, and the resolved shipping class slug, making it straightforward to trace why a product received a particular class (or none at all).
Example log output when a product’s category is changed:
[SCBCFW] Product #42: product_cat changed, resolving shipping class.
[SCBCFW] Product #42: checking category "Category B" (term_id=5), scbcfw_shipping_class="8".
[SCBCFW] Product #42: resolved to shipping class "freight".
[SCBCFW] Product #42: applying shipping class "freight".
Remember to remove SCBCFW_DEBUG (or set it to false) on production sites once you are done diagnosing.
For support, feature requests, or bug reports, please visit the plugin support page.
This plugin is licensed under the GPL v2 or later.
Note: This plugin is designed to work with WooCommerce’s standard shipping class system. For custom shipping solutions, additional configuration may be required.