We'll create fresh WordPress site with Class Based Shipping for WooCommerce — Define shipping methods per shipping class installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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.
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.
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.