When a discount is created on the Shopify store, it’s possible to apply the discount code directly on the checkout page without first entering an email address. The code is accepted at the discount field regardless of whether the customer is the eligible user for that discount.
This doesn’t break the checkout flow — if an ineligible email is entered afterward, the order still cannot be completed. However, it’s unclear whether this behavior is intentional, allowing customers to check if a discount code is valid before committing to checkout, or whether it’s a gap that should be addressed, since the discount appears to apply successfully before eligibility is actually verified.
Steps to Reproduce:
- Create a discount code restricted to specific eligible customers.
- Go to the store’s checkout page.
- Enter the discount code in the discount field without adding an email.
- Observe that the discount is accepted/applied at this stage.
- Proceed to enter an email that is not eligible for the discount.
- Note that the order cannot be completed with the ineligible email.