• Resolved tumkplaza2021

    (@tumkplaza2021)


    Hello Team,
    I hope you are well, I have got a question, I have WooCommerce and when creating a coupon I have the option of restricting its use to a single email or a couple of them, however I realized that at code level there isn’t any verification that the coupon can be used by that account therefore anyone can use them, what can I do to make this function work?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    basically if you restrict the usage to one or few emails it should work only for those emails. Coupons are verified by ajax and there is verification of them.

    You can try with your own email and you will see it in action.

    I hope this helps.

    Thread Starter tumkplaza2021

    (@tumkplaza2021)

    Hello Stefan,

    It seems that this verification isn’t taking place as everytime I try to restrict it to only an email it won’t verify it and just apply the coupon anyway with whatever account a costumer is logged in.

    Thank you for your time.

    Mirko P.

    (@rainfallnixfig)

    Hey @tumkplaza2021,

    Thanks for getting back.

    WooCommerce will apply the coupon in the cart to whatever customer is logged in, you’re right. But right when the customer in the checkout will place the order, if their billing email will not match with the email assigned to the coupon, they will get an error message and the coupon will be removed:


    Link to image: https://snipboard.io/DUpNFy.jpg

    I hope this helps!

    Thread Starter tumkplaza2021

    (@tumkplaza2021)

    Hello @rainfallnixfig,

    Thank you for answering, I can see that I have made a test and indeed as we are paying the coupon is eliminated, however my website has two very important payment methods that occur before that paying stage because at the checkout the payment methods are only for reporting the payment and the coupon is taken out “after” the checkout when you press done, this ould mean that customers will pay less than they ‘should’.

    is there someway in which I could make that verification occur before pressing done, literally at the checkout?.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @tumkplaza2021,

    However my website has two very important payment methods that occur before that paying stage because at the checkout the payment methods are only for reporting the payment and the coupon is taken out “after” the checkout when you press done, this ould mean that customers will pay less than they ‘should’.

    Thanks for sharing this info, it adds lots of context to the issue here.

    If possible, could you inform us about these two payment methods that take payment prior to the user getting to the checkout page?

    Chances are that you’ll want to get in touch with the authors of these payment methods to have a provision for applying coupon codes before receiving payment from the user. Normally, this happens on the cart and checkout pages.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Email Restricted Coupons’ is closed to new replies.