Coupon applied two times although “usage limit per user” set to 1
-
Hi
We had a case on our site where same user applied the same coupon twice, with same email address.
This is unusual and unwanted behaviour because we have “usage limit per user” set to 1.
One time she has signed in and the other time she checked out as a guest, does this have anything to do with it ?
How can we prevent this?
Thank you,
DamirThe page I need help with: [log in to see the link]
-
Hello,
Could you please provide the following information?
1. Screenshot of coupon usage restriction – please hide any emails in Allowed Emails since it’s sensitive information.
2. Screenshot of usage limits
I recommend?https://snipboard.io?for easily sharing screenshots – please follow the instructions on the page, then paste the URL in this chat. It works with Chrome, Firefox, Safari, and Edge.
3. System Status:?You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
Hi Maykato,
https://snipboard.io/RnJuKo.jpg
https://snipboard.io/dqB63E.jpgSystem status:
### WordPress Environment ### WordPress address (URL): https://sweetgraze.com.au Site address (URL): https://sweetgraze.com.au WC Version: 5.3.0 REST API Version: ? 5.3.0 WC Blocks Version: ? 4.9.1 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 2.2.6 Log Directory Writable: ? WP Version: 5.7.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_AU External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.2.34 PHP Post Max Size: 8 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.74.0 OpenSSL/1.1.1j SUHOSIN Installed: – MySQL Version: 5.7.34 Max Upload Size: 2 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.3.0 WC Database Prefix: wpze_ Total Database Size: 53.16MB Database Data Size: 40.12MB Database Index Size: 13.04MB wpze_woocommerce_sessions: Data: 0.38MB + Index: 0.01MB + Engine MyISAM wpze_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_order_items: Data: 0.30MB + Index: 0.21MB + Engine MyISAM wpze_woocommerce_order_itemmeta: Data: 3.57MB + Index: 1.63MB + Engine MyISAM wpze_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_actionscheduler_actions: Data: 2.30MB + Index: 0.63MB + Engine MyISAM wpze_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpze_actionscheduler_logs: Data: 1.14MB + Index: 0.85MB + Engine MyISAM wpze_commentmeta: Data: 0.11MB + Index: 0.09MB + Engine MyISAM wpze_comments: Data: 1.67MB + Index: 0.73MB + Engine MyISAM wpze_gdbc_attempts: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wpze_gglcptch_allowlist: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpze_hustle_entries: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpze_hustle_entries_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpze_hustle_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpze_hustle_modules_meta: Data: 0.17MB + Index: 0.03MB + Engine InnoDB wpze_hustle_tracking: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wpze_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpze_nl_subscriptions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_options: Data: 4.57MB + Index: 0.13MB + Engine MyISAM wpze_pimwick_gift_card: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpze_pimwick_gift_card_activity: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpze_plugin_notes_plus: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_postmeta: Data: 9.34MB + Index: 4.83MB + Engine MyISAM wpze_posts: Data: 1.82MB + Index: 0.25MB + Engine MyISAM wpze_po_plugins: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_revslider_css: Data: 0.09MB + Index: 0.00MB + Engine MyISAM wpze_revslider_css_bkp: Data: 0.09MB + Index: 0.00MB + Engine MyISAM wpze_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_revslider_sliders: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wpze_revslider_sliders_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wpze_revslider_slides: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wpze_revslider_slides_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wpze_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_sbi_instagram_feeds_posts: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wpze_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpze_sbi_instagram_posts: Data: 0.17MB + Index: 0.00MB + Engine MyISAM wpze_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpze_termmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpze_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpze_term_taxonomy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpze_usermeta: Data: 1.14MB + Index: 0.64MB + Engine MyISAM wpze_users: Data: 0.05MB + Index: 0.06MB + Engine MyISAM wpze_vtcrt_purchase_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_vtcrt_purchase_log_product: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_vtcrt_purchase_log_product_rule: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_vtprd_purchase_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_vtprd_purchase_log_product: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_vtprd_purchase_log_product_rule: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_vtprd_transient_cart_data: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wpze_wccs_conditions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpze_wccs_condition_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpze_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wpze_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wpze_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wc_customer_lookup: Data: 0.12MB + Index: 0.12MB + Engine MyISAM wpze_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wc_order_coupon_lookup: Data: 0.03MB + Index: 0.05MB + Engine MyISAM wpze_wc_order_product_lookup: Data: 0.31MB + Index: 0.27MB + Engine MyISAM wpze_wc_order_stats: Data: 0.16MB + Index: 0.11MB + Engine MyISAM wpze_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpze_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpze_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wfblockediplog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wfconfig: Data: 2.90MB + Index: 0.02MB + Engine MyISAM wpze_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wffilemods: Data: 4.60MB + Index: 0.92MB + Engine MyISAM wpze_wfhits: Data: 0.46MB + Index: 0.10MB + Engine MyISAM wpze_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wfissues: Data: 0.05MB + Index: 0.01MB + Engine MyISAM wpze_wfknownfilelist: Data: 2.45MB + Index: 0.28MB + Engine MyISAM wpze_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wflogins: Data: 0.48MB + Index: 0.10MB + Engine MyISAM wpze_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpze_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpze_wfnotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wfpendingissues: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wpze_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wfstatus: Data: 0.24MB + Index: 0.10MB + Engine MyISAM wpze_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wpfm_backup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_wpmailsmtp_tasks_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wpze_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpze_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpze_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpze_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpze_yoast_indexable: Data: 0.78MB + Index: 0.36MB + Engine MyISAM wpze_yoast_indexable_hierarchy: Data: 0.01MB + Index: 0.04MB + Engine MyISAM wpze_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpze_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_yoast_seo_links: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wpze_yoast_seo_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_za_categories_to_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_za_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_za_headers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_za_products_to_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_za_types: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpze_za_values: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### afterpay_quote: 2 attachment: 240 awdp_pt_products: 1 awdp_pt_rules: 1 custom_css: 1 flamingo_contact: 22 flamingo_inbound: 2 fpf_fields: 2 mc4wp-form: 1 nav_menu_item: 28 o-discount: 1 o-list: 1 oembed_cache: 7 page: 30 post: 7 product: 26 product_variation: 46 revision: 293 shop_coupon: 14 shop_order: 2160 shop_order_refund: 16 swift-slider: 1 vtcrt-rule: 1 vtprd-rule: 1 wbcr-snippets: 3 wc_afrsm: 1 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (55) ### ManageWP - Worker: by GoDaddy – 4.9.8 WPBruiser: by Mihai Chelaru – 3.1.43 StoreCustomizer: by Kaira – 2.2.9 Redux: by Redux.io + Dovy Paukstys – 4.1.26 Advanced noCaptcha & invisible Captcha: by Shamim Hasan – 6.1.5 Afterpay Gateway for WooCommerce: by Afterpay – 3.1.0 All-in-One WP Migration: by ServMask – 7.43 ELEX WooCommerce Australia Post Shipping With Tracking: by ELEX – 2.5.7 Australia Post WooCommerce Extension: by WPRuby – 1.8.3 Autoptimize: by Frank Goossens (futtta) – 2.8.4 Classic Editor: by WordPress Contributors – 1.6 Code Snippets: by Code Snippets Pro – 2.14.1 Contact Form 7: by Takayuki Miyoshi – 5.4.1 Custom Fonts: by Brainstorm Force – 1.3.2 Customer Reviews for WooCommerce: by Customer Reviews – 4.14 Duplicate Page: by mndpsingh287 – 4.4 Facebook for WooCommerce: by Facebook – 2.5.0 Flexible Product Fields: by WP Desk – 1.7.2 GA Google Analytics: by Jeff Starr – 20210211 reCaptcha by BestWebSoft: by BestWebSoft – 1.62 Smash Balloon Instagram Feed: by Smash Balloon – 2.9.1 WooCommerce Quickview: by Iconic – 3.4.4 Custom Login Page Customizer: by Hardeep Asrani – 2.1.3 Login Logout Register Menu: by Vinod Dalvi – 2.0 MC4WP: Mailchimp for WordPress: by ibericode – 4.8.4 Meks Quick Plugin Disabler: by Meks – 1.0 Meta Box: by MetaBox.io – 5.4.0 Image optimization service by Optimole: by Optimole – 3.1.0 Plugin Notes Plus: by Jamie Bergen – 1.2.4 Plugin Organizer: by Jeff Sterup – 10.1.5 Points and Rewards for WooCommerce: by MakeWebBetter – 1.1.2 Post Types Order: by Nsp Code – 1.9.5.6 PW WooCommerce Gift Cards Pro: by Pimwick LLC – 1.306 Really Simple SSL: by Really Simple Plugins – 4.0.15 Slider Revolution: by ThemePunch – 6.2.12 Simple Custom CSS: by John Regan Danny Van Kooten – 4.0.4 Swift Framework: by Swift Ideas – 2.7.30 Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0 WordPress Users & WooCommerce Customers Import Export(BASIC): by WebToffee – 2.1.4 Where Did You Hear About Us Checkout Field for WooCommerce: by Wooassist – 1.1.2 What The File: by Never5 – 1.5.4 Woo Store Vacation: by MyPreview – 1.4.1 WooCommerce Bulk Discount: by Rene Puchinger – 3.0 WooCommerce Stripe Gateway: by WooCommerce – 5.2.0 Woocommerce Gift Wrapper: by Little Package – 4.4.6 WooCommerce Google Analytics Integration: by WooCommerce – 1.5.1 WooCommerce Multiple Local Pickup: by Alex Koti – 1.0.0 WooCommerce Local Pickup Plus: by WooThemes / SkyVerge – 1.12.0 (update to version 2.9.5 is available) WooCommerce: by Automattic – 5.3.0 Wordfence Security: by Wordfence – 7.5.3 Hustle: by WPMU DEV – 7.4.4 Yoast SEO: by Team Yoast – 16.3 Asset CleanUp: Page Speed Booster: by Gabe Livan – 1.3.7.8 WP Mail SMTP: by WPForms – 2.8.0 ReCaptcha v2 for Contact Form 7: by IQComputing – 1.3.3 ### Inactive Plugins (14) ### Antispam Bee: by pluginkollektiv – 2.9.4 Breadcrumb NavXT: by John Havlik – 6.6.0 Conditional Discounts for WooCommerce by ORION: by ORION – 2.23 Flexible Checkout Fields: by WP Desk – 3.0.10 My Custom Functions: by Space X-Chimp – 4.49 Payment Gateway Based Fees and Discounts for WooCommerce: by Tyche Softwares – 2.6.3 Stop Spammers: by Trumani – 2021.14 Transdirect Shipping: by Transdirect – 7.6 W3 Total Cache: by BoldGrid – 2.1.2 WC Multi-Tiered Shipping: by M&M Hodges <[email protected]> – 2.1.1 WooCommerce Advanced Free Shipping: by Jeroen Sormani – 1.1.4 WooCommerce Blocks: by Automattic – 5.1.0 WooCommerce Dynamic Pricing: by Lucas Stark – 3.0.3 Woocommerce Table Rate Shipping: by JEM Plugins – 2.1.1 ### Must Use Plugins (2) ### ManageWP - Worker Loader: by GoDaddy – Plugin Organizer MU: by Jeff Sterup – 10.1.5 ### Settings ### API Enabled: ? Force SSL: – Currency: AUD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) pw gift card (pw-gift-card) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Shop base: ? Page not set Cart: #13225 - /cart/ Checkout: #12589 - /checkout/ My account: #14533 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Atelier Version: 2.7.12 Author URL: https://www.swiftideas.com Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: atelier/woocommerce/archive-product.php atelier/woocommerce/cart/cart-totals.php atelier/woocommerce/cart/cart.php atelier/woocommerce/checkout/form-checkout.php atelier/woocommerce/content-product.php atelier/woocommerce/content-single-product.php atelier/woocommerce/global/quantity-input.php atelier/woocommerce/loop/add-to-cart.php atelier/woocommerce/loop/loop-end.php atelier/woocommerce/loop/loop-start.php atelier/woocommerce/loop/pagination.php atelier/woocommerce/loop/result-count.php atelier/woocommerce/myaccount/form-login.php atelier/woocommerce/single-product/add-to-cart/external.php atelier/woocommerce/single-product/add-to-cart/grouped.php version 4.0.0 is out of date. The core version is 4.8.0 atelier/woocommerce/single-product/add-to-cart/simple.php atelier/woocommerce/single-product/add-to-cart/variable.php atelier/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php atelier/woocommerce/single-product/price.php atelier/woocommerce/single-product/product-image.php atelier/woocommerce/single-product/product-thumbnails.php atelier/woocommerce/single-product/related.php atelier/woocommerce/single-product/review.php atelier/woocommerce/single-product/tabs/description.php atelier/woocommerce/single-product/tabs/tabs.php atelier/woocommerce/single-product/up-sells.php atelier/woocommerce/single-product-reviews.php atelier/woocommerce/single-product.php atelier/woocommerce/content-product_cat.php Outdated Templates: ? Learn how to update ### Action Scheduler ### Complete: 4,199 Oldest: 2021-05-24 21:47:56 +1000 Newest: 2021-06-07 22:12:12 +1000 Failed: 1,058 Oldest: 2020-07-15 13:07:25 +1000 Newest: 2021-06-07 21:04:02 +1000 Pending: 1 Oldest: 2021-06-08 20:20:05 +1000 Newest: 2021-06-08 20:20:05 +1000 ### Status report information ### Generated at: 2021-06-08 02:48:33 +10:00
Hi @tahireu
Thank you for the screenshots and system status.
One time she has signed in and the other time she checked out as a guest, does this have anything to do with it ?
OK, “usage limit per user” can be restricted to users who are signed in, but not guest users. One way to prevent this is to set her email address in “Allowed Emails.” That way, she can only use the coupon once regardless of signed in or guest checkout.
If you need to restrict a coupon to only logged-in users, you might want to consider using Smart Coupons: https://woocommerce.com/products/smart-coupons/
Ok, thank you very much Maykato.
Regards,
DamirHi @tahireu
You’re welcome. I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.
We have this same issue except the user uas a “guest” each time. Both her email address and billing address are identical. Why was she able to use the coupon twice?
ThanksHi there
Also have the same issue here. Adding email addresses manually is also a very counter-productive option.
This does seem to be an issue dating back all the way too 2017 – is this going to be sorted out as this function is not working? The solution always seems to be “Purchase the plugin – Smart Coupons”. The problem is that we have not considered this in our costings when initially building the site as the explanation of the tooltip says “Per individual by either email address or ID” so this should work for both logged-in and none logged in users.
Is there a work around? Future code update?
Hey @carldeary,
This thread is closed/resolved so you may want to open a new thread and we’ll look at your issue there.
Thanks!
- The topic ‘Coupon applied two times although “usage limit per user” set to 1’ is closed to new replies.