Removing an ineligible discount code protects your margin, but it can also cost you the sale. Smart Discount Replacement takes a friendlier route: instead of removing the code, it swaps it for the code the customer is actually entitled to.
💡 In short: existing customer enters a new-customer code → the app replaces it with your existing-customer code, and the checkout continues. Exclusive feature, activated on request.
How it works
- Your store defines two codes: one for new customers and one for existing customers.
- Both codes are passed into the checkout as cart attributes (usually by your theme or by the link a customer arrives with, for example an influencer link). Our support helps you set this up.
- A customer enters the new-customer code. DiscountHero runs its duplicate check and recognizes a returning customer.
- Instead of removing the code, the app replaces it with the existing-customer code and shows a short message in the checkout: "Your discount code was replaced".
It also works the other way round: a genuine new customer who enters the existing-customer code gets the (usually better) new-customer code instead.
Extra safety net: Shopify rejects the code
Sometimes Shopify itself refuses a code (for example because it is limited to a customer segment the buyer is not in). In that case the app can still apply your existing-customer code automatically, so the customer does not end up with no discount and an error message.
Messages your customers see
All texts for these situations are translatable per store language. See Translate the checkout messages.
Availability
Smart Discount Replacement is an exclusive feature that we enable per store. Contact us via support if you want to use it, and tell us your two codes. Once enabled, you find the switch on the Settings page under "Smart Discount Replacement".
Related articles
