SafeSale · Blog

Free shipping and discount codes during a SafeSale sale

A sale is running and a shopper types a code at checkout. Which codes stack with a SafeSale sale, which get replaced, and how the two sale mechanisms differ.

The sale is live, the prices are down, and the first support message arrives: "I have a free shipping code and checkout will not take it." Or the opposite: a shopper stacks a 20% welcome code on top of a 30% sale and the order comes through at a price nobody intended. Both problems come from the same place, which is that Shopify has rules about which discounts may sit on the same order, and a sale is a discount too, or at least it can be.

This post goes through what happens when a shopper enters a code during a sale run with SafeSale, code type by code type. The answer depends on which of SafeSale's two mechanisms you chose when you created the sale, so that is where it starts.

Two mechanisms, two very different checkouts

SafeSale can run a sale in one of two ways, and the comparison post covers the trade-offs in full. For discount codes the short version is this.

In automatic discount mode, SafeSale creates a Shopify automatic discount backed by a discount function. Product prices never change; the reduction appears as a discount line at checkout. Because it is a discount, it takes part in Shopify's combination rules like any other.

In price rewrite mode, SafeSale changes the variant prices themselves and moves the old price into compare-at. There is no discount object anywhere. As far as checkout is concerned, the product simply costs less this week, and codes behave exactly as they would on a product that had always been that price.

How Shopify decides what combines

Shopify sorts every discount into one of three classes: product, order, or shipping. Each discount carries a set of switches saying which other classes it is willing to combine with, and two discounts only stack when both of them allow it. Shopify's discount combinations page documents the rules; the part that matters here is what SafeSale sets on the sale discount it creates.

SafeSale's automatic sale discount is a product discount, and it is created with order and shipping combinations switched on and product combinations switched off. Those settings are fixed. There is no toggle in the app, because the point of a sale is that a product has one sale price, and letting a second product discount pile on top is how a 30% sale accidentally becomes 50%.

Shopper entersAutomatic discount salePrice rewrite sale
Free shipping codeStacks, if your shipping code allows product discountsStacks
Order code, e.g. 10% off the orderStacks, if your order code allows product discountsStacks, calculated on reduced prices
Product code, e.g. 20% off a collectionDoes not combine; Shopify keeps the better one per itemStacks, calculated on reduced prices
Gift cardAlways appliesAlways applies

Free shipping codes

This is the code shoppers most often have in hand, from a newsletter or a threshold promotion, and it is the one that should always work. In automatic mode it does, provided the shipping discount on your side also has "product discounts" ticked under Combinations. Both sides have to agree. If your free shipping code was created years ago with every combination unticked, the sale is not what is blocking it; open the code in Discounts and tick the box.

In price rewrite mode the question does not arise. The shipping code is the only discount on the order, so Shopify applies it without consulting anything.

Order discount codes

An order discount takes a percentage or an amount off the subtotal. During an automatic mode sale, Shopify applies product discounts first and order discounts second, so a 10% order code during a 30% sale gives 10% off the already reduced subtotal, not 40% off the original. The same arithmetic falls out of price rewrite mode for the simpler reason that the reduced price is the price.

Worth knowing: if the order code has a minimum purchase requirement, Shopify checks it against the subtotal the shopper actually pays. A cart that cleared the threshold at full price can fall below it once the sale is applied, and the shopper sees the code refused for a reason that has nothing to do with combinations. Lower the threshold for the sale period or expect the question.

Product discount codes

Here the two modes part ways. A product code during an automatic mode sale is a second product discount on the same items, and SafeSale's sale discount does not allow that. Shopify does not error out; it works out which of the two gives the shopper the larger saving on each line and applies that one, with a message that the code could not be combined with the discounts already applied. A 20% code loses to a 30% sale, and a 40% code replaces it. Nothing stacks.

In price rewrite mode a product code stacks, because from Shopify's side there is only one discount present. A 20% code on a product already marked down 30% takes 20% off the sale price, for an effective 44% off the original. If that is what you want, for example a VIP code that is meant to work on everything including sale items, rewrite mode is the way to get it. If it is not what you want, pause the code for the week or exclude the sale collection from it before the sale starts.

Choosing the mode with codes in mind

If your store runs on codes, with influencer codes, loyalty codes and a welcome series all in circulation, automatic mode gives you a sale that cannot be stacked by any of them, which is usually the safer default. Shopify does the arithmetic and the shopper gets the better of sale or code on each item.

If you want codes to work on top of sale prices, or you sell on channels that do not understand automatic discounts, rewrite mode gives you plain prices that every code and every channel treats the same way. Just remember that "every code" means every code. Audit the active ones in Discounts before the sale goes live.

One last operational note. Automatic mode counts against Shopify's limit on active automatic discounts, and a store that already runs several threshold promotions can bump into it. SafeSale shows you the sale mode on the sale itself, so when a code question lands in support, the first thing to check is which kind of sale is running. The second is the Combinations section on the code. Between those two, nearly every "my code does not work" message during a sale has its answer.

Frequently asked questions

Can a shopper use a free shipping code while a SafeSale sale is running?

Yes, in both sale modes. In automatic discount mode SafeSale creates the sale discount with shipping combinations enabled, so a free shipping code applies on top as long as your shipping discount also allows combining with product discounts. In price rewrite mode there is no discount to combine with at all, so the code simply applies.

Why does a 20% off code get rejected or replaced during the sale?

Because it is a product discount, and Shopify only lets two product discounts combine when both are set to allow it. SafeSale's automatic sale discount does not combine with other product discounts, so Shopify keeps whichever of the two saves the shopper more on that item and tells them the code could not be combined. If you want codes to stack on sale items, run the sale in price rewrite mode.

Does a 10% off order code apply to the sale price or the original price?

To the sale price. Order discounts are calculated on the subtotal after product discounts in automatic mode, and on the already reduced prices in price rewrite mode. Either way the shopper gets 10% off what the items cost during the sale, not off the pre-sale price.

Do gift cards count as discounts for combination rules?

No. A gift card is a payment method, not a discount, so it never enters Shopify's combination logic. A shopper can pay for a sale order partly with a gift card and still use whatever discount codes are allowed to combine.