Remove discount code (older)
Remove discount code takes codes off the checkout, with nothing shown on the page. Use it to stop codes being used in combination with certain products, customers, or other offers.
Requires: Shopify Plus and the Buddy plan.
Settings
Section titled “Settings”Discount code to remove automatically: What to remove.
- Enter
*to remove every discount code. - Enter one code, or several separated by commas:
WELCOME10, SPRING. - A code is removed when it contains what you entered, so
SPRINGalso removesSPRING20andSPRING-VIP. Matching is case-sensitive.
Examples
Section titled “Examples”- Remove all codes when the cart contains a product tagged
no-discount(condition: Line item tags includesno-discount). - Remove
WELCOME10for customers who already have an account (condition: Customer account exists). - Remove codes when a free gift from a Product offers block is in the cart.
Things to know
Section titled “Things to know”- The block runs whenever the applied codes change, so a customer who re-enters a removed code sees it removed again while the conditions pass.
- Place it on the first step of checkout, with its ID in Fixed block ID.
- Customers aren’t told why a code was removed. Consider a content block with a Banner and matching rules to explain.
- For a rule buyers can’t get around, use Code rules. They refuse codes on Shopify’s servers with your message, such as one code per order or no codes on sale items, on any Shopify plan.
