Title: Custom conditions
Last modified: January 16, 2018

---

# Custom conditions

 *  Resolved [melissa@momodigitaldesign.com](https://wordpress.org/support/users/melissamomodigitaldesigncom/)
 * (@melissamomodigitaldesigncom)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-conditions-2/)
 * Hi there,
    I’m working on a website that sells upholstery products and material.
   I need for some small items (like bag of buttons) to have free shipping when 
   they are purchased with a roll of fabric because my client shoves the smaller
   item down in the fabric tube and does not charge shipping for that small item.
   But when the small item (bag of buttons) is purchased alone or other products(
   that aren’t the rolled material) shipping charges need to apply.
 * Based on what I’ve already tried and my understanding of your plugin, I believe
   I need a custom condition for the rolled material to be in the cart for the other
   item to be free. Maybe contains shipping class?
 * Can you please help me? I’ve seen it mentioned in the documentation that custom
   conditions are available, but I have no idea how to create one or where to put
   it!
 * Thank you so much,
 * Melissa

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-conditions-2/#post-9876517)
 * Hi Melissa,
 * You can use the existing ‘contains shipping class’ condition to check the cart
   for the small product and rolled product and provide free shipping if both are
   present.
 * I don’t think a custom condition is required for your scenario.
 * Regards,
    Jeroen
 *  Thread Starter [melissa@momodigitaldesign.com](https://wordpress.org/support/users/melissamomodigitaldesigncom/)
 * (@melissamomodigitaldesigncom)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-conditions-2/#post-9911210)
 * Hi Jeroen,
    Thanks for your response. Do you mean free shipping for just the 
   small item if both are present? I don’t want the whole cart/order to have free
   shipping. Below is what I’m trying to do.
 * Cart 1 example:
    Rolled product – x shipping charge
 * Cart 2 example:
    Small item – x shipping charge
 * Cart 3 example:
    Rolled product – x shipping charge Small item – no shipping 
   charge
 * Can this be done without a custom condition?
 * Thanks!
 * – M
 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-conditions-2/#post-9912488)
 * Hi Melissa,
 * That won’t be possible with this plugin > this plugin only allows you to setup
   free shipping for the entire cart.
 * You can however do this using the [Advanced Shipping Packages](https://woocommerce.com/products/woocommerce-advanced-shipping-packages/)
   plugin. This will allow you to split the cart into two packages, and provide 
   free shipping for one.
 * Another option is the [Advanced Shipping](http://codecanyon.net/item/woocommerce-advanced-shipping/8634573)
   plugin which allows for setting up shipping cost depending on the items in the
   cart. This would only work if you use flat rates (so no live quotes for example).
 * Hope that makes sense.
 * Cheers,
    Jeroen

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom conditions’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-advanced-free-shipping/assets/icon-256x256.png?
   rev=1171652)
 * [Advanced Free Shipping for WooCommerce](https://wordpress.org/plugins/woocommerce-advanced-free-shipping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-advanced-free-shipping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/reviews/)

## Tags

 * [custom condition](https://wordpress.org/support/topic-tag/custom-condition/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/custom-conditions-2/#post-9912488)
 * Status: resolved