A GetSale price reduction lowers the price of the products in the discount. Without blocking, shoppers can still enter a Shopify discount code at checkout and get both. Block Discount Codes stops that, one discount at a time.
Note: Discount code blocking is available on the Unlimited and Advanced plans. On other plans the checkbox is greyed out, and the lock icon next to it opens Upgrade Your Plan.
It isn't available for "Discount specific Shopify Markets" discounts yet.
Turning on discount code blocking
In GetSale, go to Discounts and click the price reduction you want to protect. To start a new one, click Create rule, then Create under Price reduction discounts.
In the Extra Options card, tick Block Discount Codes. The first option, Block amount off cart & amount off product codes, is selected for you.
Choose which codes to block. The next section explains each option.
Click Save discount.
If you haven't already, turn on the checkout rule in Shopify (see "Turning on the checkout rule in Shopify" below).
The summary on the right of the editor shows a Codes row: "Blocks all discount codes", "Blocks cart-level codes" or "Blocks line-item codes".

Which codes each option blocks
Blocking only applies when a product from this discount is in the cart.
Block amount off cart & amount off product codes (default): blocks every discount code across the cart, including codes that discount only unrelated products. The code is turned away as soon as the shopper enters it, with "This discount code can't be used with sale items."
Block amount off cart codes: blocks codes that take money off the cart total. A code for a specific product still applies.
Block amount of product codes: blocks additional product/line-level discounts only on items protected by this sale. A code that discounts only unrelated products in the same cart is allowed. A code for the cart total still applies, unless another sale in the cart blocks it.
With the cart and product options, the shopper can still enter a conflicting code and Shopify may display the reduced prices. If the discount conflicts with the selected blocking option, checkout shows "This discount code is not eligible for items on sale. Remove the discount code to complete checkout." The order can't be placed until they remove the code or the sale item. Both messages are shown in the shopper's language for French, Spanish, German, Norwegian, Dutch and Italian, and can't be edited.
To set the option every new discount starts with, go to Settings and choose Default discount code blocking.
Turning on the checkout rule in Shopify
Do this once per store. One rule covers every discount with blocking turned on. The cart and product options only work with the rule on, and it backs up the default option at checkout.
In the Extra Options card, click Steps to enable next to Block Discount Codes. Click Summary to go back.
Click this page to open Settings › Checkout in your Shopify admin, and scroll to the bottom.
In the Checkout rules section, click Add rule.
Select Getsale discount code blocker.
Click Save, then click Turn on.

When it's on, the rule shows Active under Checkout rules.

Check your automatic discounts
When blocking is on, the Important: Check Automatic Discounts banner appears under the checkbox. Shopify automatic discounts on the same products are blocked too: checkout is blocked when an automatic discount conflicts with the selected blocking option. With product-only blocking, an automatic product discount on an unrelated, unprotected item does not trigger this check. Click Check Automatic Discounts to see your active and scheduled automatic discounts in Shopify.
GetSale also adds an automatic discount named "⚠️ DO NOT MODIFY-GS_Discount Code Rejector" to your store. It is what turns codes away in the cart for the default option. Leave it as it is.
Testing it
Make sure the discount is running.
In your store, add a product from the discount to the cart.
Enter a discount code that normally works. Make sure it conflicts with the selected option: an order discount for cart-only blocking, or an additional discount on the protected sale item for product-only blocking. It should be turned away, or checkout should show the message above, depending on the option you chose. For product-only blocking, also add an unrelated product and test a code that discounts only that product: checkout should remain available and the protected item should keep its sale price. For example, sale trousers and a full-price coat can share a cart with a coat-only code. A code that also discounts the protected trousers must block checkout. Remove the conflicting code and confirm the message clears.
Troubleshooting and FAQ
Discount codes still combine with my sale. Check that Block Discount Codes is ticked on that discount, that the discount is running, and that Getsale discount code blocker is turned on under Settings › Checkout › Checkout rules in Shopify.
Checkout is blocked even though no code is applied. This feature is in beta and, in rare cases, can block a checkout without a code, often because an automatic discount applies to a sale item. Click Check Automatic Discounts in the banner to review them. If it continues, untick Block Discount Codes and contact support at support@506.io.
Can I block specific discount codes? No. You can block types of codes (cart or product), not individual codes.
Why does the default option remove the code, while the other options block checkout? Shopify handles them at two different stages. While a discount is being calculated, GetSale can remove any code but can't tell what type it is, so the default option removes every code as soon as it's entered. At checkout, GetSale can tell cart codes from product codes but can't remove them, only stop the order. That's why the cart and product options leave the code applied and block checkout instead. The default option is the simplest and suits most stores.
How do I turn blocking off? Untick Block Discount Codes and save the discount. Stopping or archiving the discount turns its blocking off too.
