Conversation
supportI have read other answer about the same problem, but other plugins manage this in a better way: https://it.wordpress.org/plugins/woocommerce-auto-added-coupons/ awfully aren’t currently developed. Just a suggestion for an improvement. This topic was modified 2 years, 3 months ago by brambil .
Hi @brambil , Thank you for your message, I appreciate the feedback and suggestion for improvement. If I can think of a way to improve this native WC email restriction behavior in a future release, I will certainly try. This plugin applies coupons automatically, but as of today all email restriction logic is native to WooCommerce. Usage Restriction and Usage Limits tabs are WC features and this plugin does not introduce or manipulate the logic in any way. This thread describes a common scenario with email restriction in WC. In short, WC will allow a coupon with email restrictions to be applied until the customer email is provided. Once the customer email is provided at checkout, WC checks the email against the coupon email restrictions and will only remove the coupon at that time… https://wordpress.org/support/topic/email-usage-restriction-not-working
Thank you for your recent suggestion! We’ve released today an optional add-on that comes with this and other advanced features. If a coupon with email restrictions is applied in the cart, the customer will receive a prompt to verify their email address before the coupon is honored. You can find more details about this upgrade in version 3+. Please explore the possibilities within the latest update and use the support option for questions about the add-on.
Thanks. In my opinion the behavior is not as expected. This is my use-case: for every order I generate a coupon, associated to an email address that has a discount for a product or a category of product. This means that I have tens of similar coupons, and with your plugin I see that 20 coupons are applied, but maybe no-one is really eligible or only one (in any case no more than 1 coupon is eligible). What I expect is that only when the user put his e-mail address coupon with e-mail address restrictions are applied. My personal suggestion and approach would be: 1. when you load coupons in the cart page make a query to load only coupons that haven’t any e-mail address restriction AND a second query, to be run only if a user is logged in, for the coupons available for the e-mail address that is stored in the account. And apply them. 2. When the user has inserted his data in the checkout form and WooCommerce made all his checks, add another action using the filter and load coupon for that e-mail address and apply them.
Hi @brambil , Thank you for the in depth description. This problem as you have described is similarly resolved in the pro version of the plugin. If a user is already logged in they may not receive a prompt if their account email matches the restrictions on the coupon. If a user is a guest, then the guest will be prompted for an email address before checkout.
Hi @brambil , Thank you for your message, I appreciate the feedback and suggestion for improvement. If I can think of a way to improve this native WC email restriction behavior in a future release, I will certainly try. This plugin applies coupons automatically, but as of today all email restriction logic is native to WooCommerce. Usage Restriction and Usage Limits tabs are WC features and this plugin does not introduce or manipulate the logic in any way. This thread describes a common scenario with email restriction in WC. In short, WC will allow a coupon with email restrictions to be applied until the customer email is provided. Once the customer email is provided at checkout, WC checks the email against the coupon email restrictions and will only remove the coupon at that time… https://wordpress.org/support/topic/email-usage-restriction-not-working
Thank you for your recent suggestion! We’ve released today an optional add-on that comes with this and other advanced features. If a coupon with email restrictions is applied in the cart, the customer will receive a prompt to verify their email address before the coupon is honored. You can find more details about this upgrade in version 3+. Please explore the possibilities within the latest update and use the support option for questions about the add-on.
Thanks. In my opinion the behavior is not as expected. This is my use-case: for every order I generate a coupon, associated to an email address that has a discount for a product or a category of product. This means that I have tens of similar coupons, and with your plugin I see that 20 coupons are applied, but maybe no-one is really eligible or only one (in any case no more than 1 coupon is eligible). What I expect is that only when the user put his e-mail address coupon with e-mail address restrictions are applied. My personal suggestion and approach would be: 1. when you load coupons in the cart page make a query to load only coupons that haven’t any e-mail address restriction AND a second query, to be run only if a user is logged in, for the coupons available for the e-mail address that is stored in the account. And apply them. 2. When the user has inserted his data in the checkout form and WooCommerce made all his checks, add another action using the filter and load coupon for that e-mail address and apply them.
Hi @brambil , Thank you for the in depth description. This problem as you have described is similarly resolved in the pro version of the plugin. If a user is already logged in they may not receive a prompt if their account email matches the restrictions on the coupon. If a user is a guest, then the guest will be prompted for an email address before checkout.