Class Based Shipping for WooCommerce — Define shipping methods per shipping class

Define the available shipping methods for your products on a per shipping class basis.

Author:Lucian Kafka (profile at wordpress.org)
WordPress version required:5.5
WordPress version tested:6.0.1
Plugin version:1.1
Added to WordPress repository:26-07-2022
Last updated:26-07-2022
Rating, %:0
Rated by:0
Plugin URI:https://uniserv.com.au/software/wordpress/wc-...
Total downloads:784
Active installs:20+
plugin download
Click to start download

This free plugin allows you to customize with ease the shipping methods available for each shipping class, so that you can offer different shipping options per product class.

How does it work?

Simply create or edit an existing shipping class, and set the available shipping methods in the Description field of the shipping class (see below syntax). The plugin will then the default shipping methods to the ones specified when one or more items in the cart match the customized shipping methods class.

Custom syntax

To customize the available shipping methods for a WooCommerce shipping class, simply use the following plugin syntax inside the description field of the shipping class: CLASS_BASED_SHIPPING(shipping_method_1_id, shipping_method_2_id [, etc])

For example, one may wish to have a shipping class for products which can be picked up locally or shipped using a flat rate method: CLASS_BASED_SHIPPING(flat_rate, local_pickup)

The class description field may also include additional text, as long as it does not interfere with the syntax of the plugin tag above.