Buy Jeans, Get Free Shipping

When to use this

Use this template when you want to give free shipping only when the cart contains a particular kind of product, for example "free shipping when you buy any pair of jeans". The Free Shipping over $100 template is similar, but checks how much the customer spends rather than what's in the cart.

How it works

This promotion is a final deal, one of Deducto's three promotion types. Final deals are considered last, after your other promotions. The Free or discounted shipping starting point creates one.

Two settings do the work:

  • An order condition checks that the cart has at least one pair of jeans. It's a matching-items total: it adds up the quantity of the cart items in the jeans category, and the promotion only applies if that total is at least 1.
  • The Free or discounted shipping reward takes 100% off shipping, on every shipping method or only the ones you choose.

Because it's a final deal, it's still considered when an earlier promotion stops other promotions from applying, so free shipping still applies on top of your other discounts. For the underlying concepts, see Order conditions and What customers get in Creating a Promotion.

Before you start

Your storefront integration needs to support shipping discounts. On a custom storefront, that means sending each shipping method's code and cost in the cart's shipping.methods with every checkout API call, then charging the discounted cost Deducto returns in resolvedCart.shipping.methods. See Understanding the request in our Custom Storefront Integration guide.

📘

Shopify projects

Shipping discounts need Shopify Plus and the Deducto checkout extension. See Feature limitations on Shopify.

The promotion also needs a product attribute that says which category each product is in. On Shopify projects, use the Collections attribute, which holds each product's Shopify collections. Add the jeans products to a Shopify collection, then pick that collection by name in the Deducto app inside Shopify Admin.

On custom storefronts, add a custom product attribute for categories in project settings. See Custom attributes.

Step-by-step setup

  1. Open your project's Promotions page and click New promotion.
  2. Choose Free or discounted shipping, then click Continue.
  3. Under What's the deal?, enter the name and description, and set Priority to 1. The full set of values is in the settings reference below.
  4. Under What customers get, keep the Free or discounted shipping reward with Percentage off shipping at 100, and leave Apply to all shipping methods on.
  5. Under When does this apply?:
    • Turn on Turned on.
    • Leave Starts and Ends empty so the offer runs until you turn it off.
    • Leave Needs a coupon code? off.
    • In the order conditions, turn on Advanced rule editor and click Add a matching-items total.
    • In the new group, set the total to combined quantity, change the comparison to is at least, and enter 1.
    • Inside the group, choose your category attribute (collections on Shopify projects) from Add another condition…. Make sure the comparison is is one of, then add the jeans category or collection. On Shopify, use the choose button to pick the collection by name. On custom storefronts, use category search if available, or type the category value your storefront sends and press Enter.
  6. Under Limits, leave both limits at 0.
  7. Under Advanced, check Currencies and leave After this promotion applies as Keep checking other promotions.
  8. Check that the summary beside the form describes free shipping when the cart has at least one pair of jeans, then click Save promotion.

Variations

  • To use a different category, change the value in the category condition, for example to jackets or footwear.
  • To require more than one item, raise the total, for example to 2 for "free shipping when you buy 2 pairs of jeans".
  • To trigger on specific products instead of a category, remove the matching-items total, turn off Advanced rule editor, then click Specific products in the order conditions.
  • To also require a minimum spend, add a discounted subtotal condition alongside the matching-items total, at the top level of the order conditions.
  • To offer discounted rather than free shipping, lower Percentage off shipping, for example to 50.
  • To discount only some shipping methods, turn off Apply to all shipping methods and list them under Which shipping methods?.
  • To let earlier promotions stop this one, create it from Start from scratch (advanced) with Discount the whole order, then change the reward to Free or discounted shipping. A whole-order deal is skipped when an earlier promotion uses Stop — don't apply anything else or Only this promotion applies.

Testing

  1. Add an item that isn't jeans and confirm shipping is charged as normal.
  2. Add a pair of jeans and confirm shipping drops to zero.
  3. Try each shipping method and confirm they're all free.
  4. Remove the jeans and confirm shipping is charged again.

Settings reference

Every setting this template uses:

SectionSettingValue
What's the deal?NameBuy Jeans, Get Free Shipping
What's the deal?DescriptionFree shipping on any order with a pair of jeans
What's the deal?Priority1
What customers getWhat do customers get?Free or discounted shipping
What customers getPercentage off shipping100
What customers getApply to all shipping methodsOn
When does this apply?Turned onOn
When does this apply?Starts(empty)
When does this apply?Ends(empty)
When does this apply?TimezoneAustralia/Sydney
When does this apply?Needs a coupon code?Off
When does this apply?Order conditionsMatching-items total: Combined quantity is at least 1, for items where Category (Collections on Shopify) is one of (the jeans category)
LimitsHow many times can it be used in total?0 (unlimited)
LimitsHow many times per customer?0 (unlimited)
AdvancedCurrenciesAUD
AdvancedAfter this promotion appliesKeep checking other promotions
AdvancedPromotion typeFinal deal

Did this page help you?