Conditional Shipping Pro / Documentation
Conditional Shipping is installed just like any other WordPress plugin.
- Download the plugin zip file from the confirmation email.
- Go to Plugins in the WordPress admin panel.
- Click Add new and Upload plugin
- Choose the downloaded zip file and upload it
- Activate the plugin
Upgrading from the Free version
Here's how to upgrade from the Free version:
- Install the Pro version
- Deactivate the Free version
Any conditions created with the Free version will be preserved and work in the Pro version.
Restricting shipping methods
Conditional Shipping is used to restrict existing WooCommerce shipping methods, for example Flat Rate. The shipping methods have to be created with shipping zones which are part of WooCommerce core functionality.
- Go to WooCommerce > Settings > Shipping
- Select the shipping zone, e.g. USA or Locations not covered by your other zones
- Click edit on the shipping method
- Fill in the conditions to restrict the shipping method. Below you will find the table of all available conditions.
|Weight||Total weight of products.|
|Total Width||Maximum total width of products.|
|Total Length||Maximum total length of products.|
|Total Height||Maximum total height of products.|
|Total Volume||Total volume of products.|
|Subtotal||Subtotal of the cart.|
|Number of Items||Number of items in the cart.|
|Products||Products in the cart.|
|Shipping Classes||Shipping classes of the products in the cart.|
|Categories||Categories of the products in the cart.|
|Coupons||Coupons in the cart.|
|Logged in / out||Is customer logged in or out.|
|Role||WordPress user role of the customer logged in.|
You have products to be shipped with Freight shipping method and other products with Economy Box shipping method. The former products have shipping class freight. Here are the conditions for both shipping methods:
Shipping Classes - Includes - Freight
Shipping Classes - Excludes - Freight
Now when there are any freight products in the shopping cart, only Freight is available on the checkout. Otherwise only Economy Box is available.