Remove discount code after first purchase shopify due to multiply codes being used
Budget: £10 – £20 GBP
I need a concise Shopify solution that stops every discount code from being accepted once a customer has completed their first order and is logged in with the same account. The idea is simple: new shoppers can enjoy any promo code during their initial checkout, but the moment that first purchase records against their account, all subsequent attempts to apply a discount—no matter which code—should be blocked automatically.
The store already tracks customers through account creation, so that is the flag to reference. I am open to whatever approach is most reliable on Shopify Plus or standard Shopify—whether a Liquid snippet, Shopify Functions, Scripts, or a lightweight app you build and hand off. What matters is that:
• The logic checks the customer’s order history (via their account) in real-time at checkout.
• If the account shows zero orders, codes remain valid; otherwise the discount field is disabled or any code entered is rejected with a friendly message.
• The current checkout flow, theme styling, and other apps stay unaffected.
Please test in a development theme or draft order environment first, then guide me through installation and a quick live test so we can confirm the restriction works across web and mobile checkout. A short note on how to enable, disable, or edit the rule later will wrap things up.
The store already tracks customers through account creation, so that is the flag to reference. I am open to whatever approach is most reliable on Shopify Plus or standard Shopify—whether a Liquid snippet, Shopify Functions, Scripts, or a lightweight app you build and hand off. What matters is that:
• The logic checks the customer’s order history (via their account) in real-time at checkout.
• If the account shows zero orders, codes remain valid; otherwise the discount field is disabled or any code entered is rejected with a friendly message.
• The current checkout flow, theme styling, and other apps stay unaffected.
Please test in a development theme or draft order environment first, then guide me through installation and a quick live test so we can confirm the restriction works across web and mobile checkout. A short note on how to enable, disable, or edit the rule later will wrap things up.