# How to make one Shopify discount code give a discount and free shipping

A Shopify discount code holds one kind of discount: a product discount, an order discount or a shipping discount. So a code that takes money off and also gives free shipping normally means two codes, which the customer has to enter together. With [OneCode: Stackable Discounts](https://apps.shopify.com/rm-combo-discounts), one code holds both. Add a **Product Discount** for a percentage off the items, or an **Order Discount** for a fixed amount off the order, then add a **Shipping Discount** with **Free Shipping**. Each part can have its own rules, so shipping can be free only above a minimum spend, or only on the cheapest rate.

## Pick your version

Every version below is one code with two parts. What changes is the kind of discount and where you put the rules.

| What you want | The parts of the code | Full guide |
| --- | --- | --- |
| Percent off and free shipping | **Product Discount** with **Percentage**, plus **Shipping Discount** with **Free Shipping** | [20% off and free shipping](/guides/20-percent-off-and-free-shipping.md) |
| A fixed amount off and free shipping | **Order Discount** with **Fixed Amount**, plus **Shipping Discount** with **Free Shipping** | [Product, order and shipping discounts in one code](/one-code.md) |
| Free shipping only above a minimum | A **Cart Subtotal** condition under the shipping discount's **Per-Discount Conditions** | [20% off and free shipping](/guides/20-percent-off-and-free-shipping.md) |
| Nothing at all below a minimum | A **Cart Subtotal** condition under **Global Conditions** | [Spend $100, get 20% off and free shipping](/guides/spend-100-get-20-off-and-free-shipping.md) |
| Only the cheapest rate free | **Rate Selection** set to **Cheapest Rate** | This page, below |
| Only named rates, such as Express | **Rate Selection** set to **Select Rates** | [Shipping when the discount applies](/guides/shipping-when-discount-applies.md) |
| Free shipping only when the discount applies | **Match Another Discount's Rules** on the shipping discount | [Shipping when the discount applies](/guides/shipping-when-discount-applies.md) |

## One cart, five versions of the code

The cart: a $50 shirt and a $30 tote, so the items come to $80. Economy shipping is $8. Without a code, the customer pays $88.

| Code setup | Items | Shipping | Customer pays |
| --- | --- | --- | --- |
| 20% off, free shipping on every order | $64 | Free | $64 |
| $10 off the order, free shipping on every order | $70 | Free | $70 |
| 20% off, free shipping from $100 (on the shipping discount only) | $64 | $8 | $72 |
| 20% off and free shipping, both from $100 (in **Global Conditions**) | $80 | $8 | $88 |
| 20% off, free shipping on the cheapest rate only | $64 | Free on Economy | $64 |

How the numbers work:

- 20% of $50 is $10 and 20% of $30 is $6, so the items drop by $16, from $80 to $64.
- The $10 order discount comes off once, from $80 to $70.
- A $100 minimum is not met by an $80 cart. On the shipping discount alone, the 20% still applies and only shipping is charged. In **Global Conditions**, the whole code gives nothing.
- With **Cheapest Rate**, Economy is free. If your store also offers Express Shipping at $16 and the customer picks it, they pay $64 for the items and $16 for Express, $80 in total.

Here is the first version at checkout, on the code BFCM20:

![BFCM20 at checkout: the $50 Summer linen shirt is $40, the $30 Canvas tote is $24, Economy shipping is free instead of $8, and the total is USD $64.00](/images/checkout-bfcm80.png)

And the second version, $10 off the order with free shipping, on the code SAVE10:

![SAVE10 at checkout: the $50 Summer linen shirt and the $30 Canvas tote come to $80, SAVE10 takes $10 off the order, Economy shipping is free instead of $8, and the total is USD $70.00](/images/checkout-fixed10.png)

**Cart Subtotal** is checked before the code's own discounts come off. With free shipping from $50, a $60 cart still ships free, even though the items cost $48 after 20% off.

## All of it on one code

The parts stack, so one code can carry a minimum spend, a percentage, a fixed amount and free shipping on the cheapest rate. The code SHOWCASE has a **Global Condition** of **Cart Subtotal** of at least $100, 20% off the Summer Collection, $10 off the order, and free shipping on the cheapest rate.

![The OneCode editor for the code SHOWCASE: Global Conditions with Cart Subtotal greater than or equal to 100 USD, and three discount types: a 20% Product Discount on the Summer Collection, a 10 USD Order Discount, and a Free Shipping discount on the cheapest rate](/images/editor-three-parts.png)

A customer buys a $100 Summer linen shirt. The cart reaches $100, so the code applies. The shirt gets 20% off and costs $80. The $10 order discount comes off after that, leaving $70. The $8 Economy rate is free. The customer pays $70.

![SHOWCASE at checkout: the $100 Summer linen shirt is $80, SHOWCASE takes $10 off the $80 subtotal, Economy shipping is free instead of $8, and the total is USD $70.00](/images/checkout-showcase100.png)

## Set it up

1. In OneCode, click **Create discount**, keep **Discount code**, and enter your code. For an offer with no code to type, choose **Automatic discount** and give it a **Title** instead.
2. Click **Add Discount Type** for the money off:
   - **Percent off the items:** keep **Product Discount** and **Percentage**, and enter the number, for example `20`. Keep **Target** as **All Products**, or choose **Specific Collections**.
   - **A fixed amount off the order:** set **Discount Type** to **Order Discount** and **Value Type** to **Fixed Amount**, then enter the amount in **Amount**, for example `10`.
3. Click **Add Discount Type** again. Set **Discount Type** to **Shipping Discount** and keep **Free Shipping**.
4. Under **Rate Selection**, keep **All Rates**, or choose **Cheapest Rate**, or choose **Select Rates** and add each rate name.
5. For a minimum spend, click **Add Condition** and set **Field** to **Cart Subtotal**, **Operator** to **Greater than or equal to**, and the **Value**. Put it under the shipping discount's **Per-Discount Conditions** if only shipping needs the minimum. Put it under **Global Conditions** if the whole code does.
6. Click **Save discount**.

Other rules you can put on the shipping discount alone:

- **Free shipping in one country only:** add **Shipping Country** **Equals** `US`.
- **Free shipping only when the cart has discounted items:** add **Match Another Discount's Rules** and tick the product discount. See [shipping when the discount applies](/guides/shipping-when-discount-applies.md).

## Things to check before you launch

- **A fixed amount belongs on an Order Discount.** It comes off the order once. A **Product Discount** with **Fixed Amount** takes the amount off each item instead.
- **Rate names must match exactly.** With **Select Rates**, the name must be the rate's full name as customers see it at checkout. `Express` won't match `Express Shipping`. Copy the names from your own checkout, because rates from shipping apps or carriers can have different names.
- **Cheapest Rate skips free rates.** It discounts the cheapest rate that isn't already free. If the order ships from two locations, the cheapest rate of each shipment is discounted.
- **Shipping appears late.** The shipping discount shows once checkout shows shipping rates, because that's when Shopify knows which rates the customer can choose. Checkout labels it **FREE SHIPPING**.
- **Another free shipping offer won't add.** If the customer also has a separate shipping discount, Shopify applies one shipping discount per order and keeps the one that saves more. The parts inside one OneCode code always apply together. **Combinations** only matters for other, separate discounts. See [discount combinations](/guides/discount-combinations.md).

## Why not two codes

With Shopify's own discounts, the same offer is a [discount code](https://help.shopify.com/en/manual/discounts/discount-methods/discount-codes) for the money off plus a separate [free shipping discount](https://help.shopify.com/en/manual/discounts/discount-types/free-shipping). The customer has to know about both and enter both, and each has to be set to combine with the other's kind. On one OneCode code, the customer enters it once and gets both.

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).
