Title: Conditional shipping logic
Last modified: April 15, 2021

---

# Conditional shipping logic

 *  Resolved [PG](https://wordpress.org/support/users/pacificim/)
 * (@pacificim)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/conditional-shipping-logic/)
 * I would like to know how to setup Woocommerce to handle the following shipping
   scenarios. I have setup several shipping classes as follows:
 * Small Items (eg $15)
    Large Items (eg $20) Jewelery Items (eg $10)
 * Scenarios:
    1. Customer orders 1 product which is assigned shipping class Small
   Items = total shipping should be $15.
 * 2. Customer orders 1 product which is assigned shipping class Large Items = total
   shipping should be $20.
 * 3. Customer orders 1 product which is assigned shipping class Small Items + 1
   product which is assigned shipping class Large Items = total shipping should 
   be $20 (since that’s the most expensive shipping class based on the products 
   in the cart).
 * 4. Customer orders 1 product which is assigned shipping class Small Items + 1
   product which is assigned shipping class Jewelery Items = total shipping should
   be $15+$10=$25 (since the Jewelery items have a separate shipping cost…and the
   most expensive shipping class should be used for the other products in the cart..
   eg if it was a large product then total shipping would be $20+$10=$30 total).
 * Scenarios 1,2,3 are working but scenario 4 I can’t figure out how to solve. I’m
   currently using the free version of this plugin: [https://wpfactory.com/item/custom-shipping-methods-for-woocommerce/](https://wpfactory.com/item/custom-shipping-methods-for-woocommerce/)
 * Questions: What is the simplest way to handle this problem? Preferably a free
   solution, otherwise paid options, eg will the paid version of the above mentioned
   plugin solve this issue?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Shohan Hossain Nabil – a11n](https://wordpress.org/support/users/sohanhossain/)
 * (@sohanhossain)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/conditional-shipping-logic/#post-14389178)
 * Hello [@pacificim](https://wordpress.org/support/users/pacificim/),
 * We can only assist you with the default functionality of WooCommerce. The **Custom
   Shipping Methods for WooCommerce** you are using is not developed by us.I suggest
   you reach out to the plugin’s support to get further assistance.
 * I’m going to mark this as resolved – if you have any further questions, you can
   start a new thread.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Conditional shipping logic’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shohan Hossain Nabil – a11n](https://wordpress.org/support/users/sohanhossain/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/conditional-shipping-logic/#post-14389178)
 * Status: resolved