• Resolved dwh01

    (@dwh01)


    I created a coupon code and I need to limit usage to specific email addresses. The coupon works fine, but the email restriction is ignored. I can enter any email address on the order and the coupon can still be used. I can go to an incognito window, place an order with any email and use the coupon. I am using Woocommerce 5.1.0 and the latest WordPress with all plugins up to date. I searched the forums and the problem has been reported in the past, but there was no clear resolution that I could try.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @dwh01 ,

    Okay, let’s figure it out.

    The email restrictions of coupon in WooCommerce checks the “billing email address” of the customer during checkout. According to documentation –

    Allowed Emails/Email restrictions – Email address or addresses that can use a coupon. Verified against customer’s billing email. WooCommerce 3.4+ also allows you to include a wildcard character (*) to match multiple email addresses, for example, *@gmail.com would make any Gmail address.

    So, if you use the coupon on the cart page, it will be applied (considering you are not logged in and your billing email is not yet saved on the site). Once you are in the checkout and want to place the order you are unable to do that with a coupon and it will give you an error message – https://prnt.sc/10qt86k.

    If you do not see the error message and the coupon works for non-identified emails then you can do these troubleshooting steps:

    1. Perform a conflict test by deactivating all plugins except WooCommerce. Also switch over to a default theme like Storefront.
    2. You can share your coupon restriction tabs as a screenshot. You can use https://snipboard.io/ to share a screenshot.

    Let me know how it goes.

    Thank you 🙂

    Thread Starter dwh01

    (@dwh01)

    OK, thank you! Simple enough – I wasn’t clicking through to the payment step. Once I try to pay without a permitted email address it throws a message and removes the coupon code.

    Hi there,

    Awesome!

    I am glad that it was helpful. I am going to mark this thread as resolved. If you have any other queries, feel free to open a new thread.

    Thank you 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘email usage restriction not working’ is closed to new replies.