# Spend $100, get 20% off and free shipping, in one Shopify code

Shopify's own discount codes each hold one kind of discount, so "spend $100, get 20% off and free shipping" normally takes two separate discounts. With [OneCode: Stackable Discounts](https://apps.shopify.com/rm-combo-discounts), one code holds both. You set a $100 minimum for the whole code, then add a 20% product discount and a free shipping discount. From $100 the customer gets both. Below $100 the code gives nothing.

## What the customer gets

In this example the code is `SAVE100`.

- A $120 cart (a $70 shirt and a $50 tote) gets 20% off each item, $24 in total, and free shipping. The customer pays $96.
- A $100 cart gets $20 off and free shipping. The customer pays $80.
- An $80 cart doesn't qualify. The customer pays $80 for the items plus shipping.

![A $120 cart with SAVE100: the $70 shirt is $56, the $50 tote is $40, shipping is free instead of $8, and the total is $96](/images/checkout-spend120.png)

![An $80 cart with SAVE100 typed in: checkout shows the code couldn't be applied, the items stay at $80, shipping is $8, and the total is $88](/images/checkout-spend80.png)

The $100 is checked before the 20% comes off. A $110 cart qualifies even though the items cost $88 after the discount.

## Set it up

1. In OneCode, click **Create discount**, choose **Discount code** and enter `SAVE100`.
2. In **Global Conditions**, click **Add Condition**. Set **Field** to **Cart Subtotal**, **Operator** to **Greater than or equal to** and **Value** to `100`. Global Conditions apply to the whole code: if one isn't met, nothing in the code applies.
3. Click **Add Discount Type**. Leave it as a **Product Discount** on **All Products**, and enter `20` in **Percentage**.
4. Click **Add Discount Type** again. Set **Discount Type** to **Shipping Discount** and keep **Free Shipping**.
5. Click **Save discount**.

Here is the same setup in the editor, saved under the code `SPEND100`:

![OneCode editor for code SPEND100: a Global Condition of Cart Subtotal greater than or equal to 100 USD, a 20% Product Discount on All Products, and a Free Shipping discount on all rates](/images/editor-spend-100.png)

## Variations

- **A different minimum for each part:** leave **Global Conditions** empty and give each discount type its own **Cart Subtotal** condition under **Per-Discount Conditions**. For example, 20% off from $100 and free shipping from $75.
- **Only the cheapest shipping rate free:** set the shipping discount's **Rate Selection** to **Cheapest Rate**. It makes the cheapest paid rate free and leaves the other rates at full price.
- **$10 off the order instead of 20% off the items:** set the discount type to **Order Discount**, choose **Fixed Amount** as the **Value Type** and enter `10`. The $10 comes off the order as one line instead of being spread across the items.
- **Bigger rewards for bigger carts:** add higher tiers to the same code. See [spend more, save more](/guides/spend-more-save-more.md).
- **A free gift at $100:** see [free gift with purchase](/guides/free-gift-with-purchase.md).

OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. [Install it from the Shopify App Store](https://apps.shopify.com/rm-combo-discounts).
