Shopify Specific Discount Code Issue

Topic summary

Main issue: Configuring a Shopify discount code to be valid only for specific customer emails.

Observed behavior:

  • The code appears to work when the team is logged into emails.
  • Customers who are not logged in can still apply the discount code, suggesting the restriction is not enforced at checkout.

Goal: Restrict the discount so it can only be used by a selected set of email addresses, preventing use by anyone not logged in with those emails.

Key question: Is there a built-in way to enforce email-specific eligibility (e.g., requiring login or limiting to selected email addresses) so that non-eligible, non-logged-in customers cannot apply the code?

Attachments: A screenshot image (likely of the discount settings) is provided and may be central to interpreting the current configuration.

Status: No solutions or guidance have been provided yet; the issue remains unresolved and is awaiting troubleshooting advice.

Summarized with AI on February 3. AI used: gpt-5.

Hi All,

I’ve trying to set up the Specific Discount Code for my website.
It works only when we login to emails.

But if the customer didn’t login, then they can still appy the discount code.

Is there a way to avoid this?

I would like to have the discount code thats only specific to some emails that’s selected.

Hi,

I’m not 100% sure I understand. Are you saying that people who are not in that specific list are able to redeem this discount code? Or are you saying that you want to require customers to be logged in to redeem it?

If it’s the former, that sounds like a potential bug in Shopify. But make sure you are looking at the right discount code first.

If it’s the latter, then unfortunately, you can’t create discounts that specifically require customers to be logged in without an app. With built-in discounts, the discount will work if the customer enters their email at checkout without first logging in.

Best,

Tobe Osakwe

Founder, Regios Discounts app

hello, @melody_13

This is a limitation of Shopify’s native discount system. When a discount is set for Specific customers, Shopify doesn’t block the code at the cart level. The check happens later, during checkout, based on the email the customer enters.

So even if a customer isn’t logged in, they can still enter the code, but the discount only applies if the checkout email matches one of the selected customers. From the storefront side, there’s no native way to hide or lock the code for logged-out users.

If the use case requires hard enforcement (code should not work at all unless the customer is logged in or matches a specific email), that’s outside what standard Shopify discounts can do on their own and would need checkout-level validation or additional logic.