Sometimes you need extra product attributes to control shipping methods more accurately. For example, you may want to select the package type for products to charge extra shipping for items shipped on pallets.
WooCommerce Conditional Shipping Pro makes this easy with the Product Meta condition. You can add custom meta fields using various plugins, with Advanced Custom Fields being a popular choice. In this example, you will learn how to add an extra shipping charge for products shipped on a pallet.
How to set it up
- Install Advanced Custom Fields
- Go to ACF > Fields Groups
- Click Add new and define the following field group:
- Now you can select Pallet for appropriate products:
- Go to WooCommerce > Settings > Shipping > Conditions and click Add ruleset
- Define the following ruleset:
You can select from two meta keys. The one without the underscore is the right one when using ACF
- Click Save changes
With this ruleset, the shipping price will increase by $ 80 whenever a pallet-shipped product is in the cart.