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 shippingreward 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 projectsShipping 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
- Open your project's
Promotionspage and clickNew promotion. - Choose
Free or discounted shipping, then clickContinue. - Under
What's the deal?, enter the name and description, and setPriorityto1. The full set of values is in the settings reference below. - Under
What customers get, keep theFree or discounted shippingreward withPercentage off shippingat100, and leaveApply to all shipping methodson. - Under
When does this apply?:- Turn on
Turned on. - Leave
StartsandEndsempty so the offer runs until you turn it off. - Leave
Needs a coupon code?off. - In the order conditions, turn on
Advanced rule editorand clickAdd a matching-items total. - In the new group, set the total to
combined quantity, change the comparison tois at least, and enter1. - Inside the group, choose your category attribute (
collectionson Shopify projects) fromAdd another condition…. Make sure the comparison isis 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.
- Turn on
- Under
Limits, leave both limits at0. - Under
Advanced, checkCurrenciesand leaveAfter this promotion appliesasKeep checking other promotions. - 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
2for "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 clickSpecific productsin the order conditions. - To also require a minimum spend, add a
discounted subtotalcondition 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 to50. - To discount only some shipping methods, turn off
Apply to all shipping methodsand list them underWhich shipping methods?. - To let earlier promotions stop this one, create it from
Start from scratch (advanced)withDiscount the whole order, then change the reward toFree or discounted shipping. A whole-order deal is skipped when an earlier promotion usesStop — don't apply anything elseorOnly this promotion applies.
Testing
- Add an item that isn't jeans and confirm shipping is charged as normal.
- Add a pair of jeans and confirm shipping drops to zero.
- Try each shipping method and confirm they're all free.
- Remove the jeans and confirm shipping is charged again.
Settings reference
Every setting this template uses:
| Section | Setting | Value |
|---|---|---|
| What's the deal? | Name | Buy Jeans, Get Free Shipping |
| What's the deal? | Description | Free shipping on any order with a pair of jeans |
| What's the deal? | Priority | 1 |
| What customers get | What do customers get? | Free or discounted shipping |
| What customers get | Percentage off shipping | 100 |
| What customers get | Apply to all shipping methods | On |
| When does this apply? | Turned on | On |
| When does this apply? | Starts | (empty) |
| When does this apply? | Ends | (empty) |
| When does this apply? | Timezone | Australia/Sydney |
| When does this apply? | Needs a coupon code? | Off |
| When does this apply? | Order conditions | Matching-items total: Combined quantity is at least 1, for items where Category (Collections on Shopify) is one of (the jeans category) |
| Limits | How many times can it be used in total? | 0 (unlimited) |
| Limits | How many times per customer? | 0 (unlimited) |
| Advanced | Currencies | AUD |
| Advanced | After this promotion applies | Keep checking other promotions |
| Advanced | Promotion type | Final deal |
Updated 23 days ago