Support » Plugin: WooCommerce » Coupon email restrictions not working

  • Resolved craigdoesdesign


    I have seen this posted before but marked as resolved through a recent update. I am experiencing this issue on the latest version of Woocommerce (3.2.5)

    I have set up a coupon that should be restricted to around a dozen email addresses. The coupon when applied works as expected. The discount is applied and goes through to the cart without issue.

    The problem is that it is applied irrespective of the email address that is entered.

    So the process on that a customer would see is as follows:
    The coupon code is entered.
    Discount is applied.
    Customer details are entered (including random email)
    Discount remains
    ‘Continue to payment’ button is clicked
    Discount remains.
    Payment with discount applied is made.

    If it is of any help…

  • I am using Stripe as the payment processor and the Woocommerce Stripe Gateway plugin.
  • The coupon has been set up as a percentage discount with no expiry date and no other restrictions other than email.
Viewing 11 replies - 1 through 11 (of 11 total)
  • I’m wondering if the issue that is being experienced here is connected.

    Plugin Support Zandy Ring


    Automattic Happiness Engineer

    Hi there,

    I just tested this on a test site. I had to test in an incognito window, otherwise it lets me use coupons willy nilly as an Admin. But in an incognito window, it looks like I can use the coupon right up until I’ll filled out the billing details and clicked on Place Order.

    It sounds like you are seeing customers being able to use the coupon all the way through the checkout process, however. Could you try testing yourself in an incognito window? If you are able to complete a transaction with a coupon you shouldn’t have, you will next need to disable all your other plugins to run a conflict test. You may want to make a full backup of your site (recommended) before doing this, as well as doing the actual conflict testing on a staging site. If it works properly with all other plugins disabled, it means that one of your other plugins is somehow interfering with the way that core WooCommerce is working.

    Another thing to check is to see if you have any PHP fatal errors – you can check with your host if you need help checking those.

    Let us know how it goes!


    Plugin Support eri32s98


    We haven’t heard back from you in a while, so I’m going to mark this as resolved. If you have any further questions, you can start a new thread.



    I have the same issue, so this is not resolved.
    There is no restricton when you add email restriction. Anyone can buy without restriction. Coupon apply to to enyone.
    I’ve done all the test in incognito.
    I’m using woocommerce 3.2.6



    Check if you have anything like this in your functions.php

    //Remove “Sorry, it seems the coupon is invalid” Error Message
    add_filter( ‘woocommerce_coupon_error’, ‘__return_empty_string’ );


    I have the same issue. That filter is not in our function file and everything is updated, we try also to disable all the plugin, no way. The restriction definetly does not work.
    It would be nice if you can solve this issue.

    @fulvialami Did you switch themes and check?


    Sorry guys, same problem here. Switching to Storefront theme doesn’t change anything. That’s quite annoying…

    I am facing the same issue. So I’m just looking for another plugin.


    This snippet works for me:

    I hope they fix this issue as soon as possible in official plugin.

    Best Regards!


    This snippet works but then you can ONLY use coupons with email-restriction!
    Do anybody have a something who works with both varants in a page – free coupons & restricted coupons?
    Sorry, I am too stupid to modify script by myself so it works 🙁

    I use woocommerce 3.5.1 and have the same issue still!

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.