• Resolved demiromer

    (@demiromer)


    I created a coupon and made it available to only two users and defined their mail addresses separated with commas.
    But the coupon can be used by every one restriction is not working

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter demiromer

    (@demiromer)

    In addition to that, I define a coupon for a customer as valid only for his email address and minimum cart total. Although the cart is over the limit, it gives a warning that the coupon is only available over the quota, but the cart is already over the quota…

    Igor H

    (@ihereira)

    Hello

    Please navigate to WP-Admin > Marketing > Coupons > Usage restrictions. Then please send us a screenshot of that settings, you can send it via https://snipboard.io.

    Please send a copy of your site’s System Status, you can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.?This is in order to get a better idea about the site’s configuration to assist you better.

    Thread Starter demiromer

    (@demiromer)

    Hi igor thanks for the reply, here below you may find details

    https://snipboard.io/xgotQs.jpg

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://xxx.com
    Site address (URL): https://xxx.com
    WC Version: 7.1.0
    REST API Version: ? 7.1.0
    WC Blocks Version: ? 8.7.5
    Action Scheduler Version: ? 3.5.2
    Log Directory Writable: ?
    WP Version: 6.1
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: tr_TR
    External object cache: ?
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.4.33
    PHP Post Max Size: 1 GB
    PHP Time Limit: 300
    PHP Max Input Vars: 3000
    cURL Version: 7.71.0
    OpenSSL/1.1.1p
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.5.17-MariaDB-cll-lve
    Max Upload Size: 1 GB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 7.1.0
    WC Database Prefix: xxx_
    Total Database Size: 163.83MB
    Database Data Size: 152.59MB
    Database Index Size: 11.24MB
    xxx_woocommerce_sessions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    xxx_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xxx_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xxx_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xxx_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xxx_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_aal_statistics: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    xxx_actionscheduler_actions: Data: 1.25MB + Index: 0.44MB + Engine InnoDB
    xxx_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_actionscheduler_logs: Data: 2.41MB + Index: 2.56MB + Engine InnoDB
    xxx_automated_links: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    xxx_blc_filters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    xxx_blc_instances: Data: 0.36MB + Index: 0.05MB + Engine MyISAM
    xxx_blc_links: Data: 2.12MB + Index: 0.23MB + Engine MyISAM
    xxx_blc_synch: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    xxx_commentmeta: Data: 0.55MB + Index: 0.11MB + Engine MyISAM
    xxx_comments: Data: 2.09MB + Index: 0.23MB + Engine MyISAM
    xxx_kc_us_utm_presets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    xxx_litespeed_avatar: Data: 0.23MB + Index: 0.14MB + Engine InnoDB
    xxx_litespeed_crawler: Data: 0.11MB + Index: 0.14MB + Engine InnoDB
    xxx_litespeed_crawler_blacklist: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_litespeed_img_optm: Data: 1.52MB + Index: 0.66MB + Engine InnoDB
    xxx_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    xxx_litespeed_url: Data: 0.08MB + Index: 0.08MB + Engine InnoDB
    xxx_litespeed_url_file: Data: 0.06MB + Index: 0.08MB + Engine InnoDB
    xxx_mailerlite_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xxx_mclean_refs: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    xxx_mclean_scan: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    xxx_ms_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    xxx_options: Data: 95.34MB + Index: 0.43MB + Engine MyISAM
    xxx_postmeta: Data: 19.85MB + Index: 1.52MB + Engine MyISAM
    xxx_posts: Data: 14.52MB + Index: 0.61MB + Engine InnoDB
    xxx_redirection_404: Data: 2.74MB + Index: 0.44MB + Engine MyISAM
    xxx_redirection_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    xxx_redirection_items: Data: 0.04MB + Index: 0.05MB + Engine MyISAM
    xxx_redirection_logs: Data: 2.46MB + Index: 0.34MB + Engine MyISAM
    xxx_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    xxx_termmeta: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    xxx_terms: Data: 0.04MB + Index: 0.07MB + Engine MyISAM
    xxx_term_relationships: Data: 0.03MB + Index: 0.08MB + Engine MyISAM
    xxx_term_taxonomy: Data: 0.05MB + Index: 0.04MB + Engine MyISAM
    xxx_usermeta: Data: 0.29MB + Index: 0.08MB + Engine MyISAM
    xxx_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    xxx_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    xxx_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xxx_wc_comments_subscription: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xxx_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_wc_feedback_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_wc_follow_users: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    xxx_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xxx_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    xxx_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_wc_phrases: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    xxx_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    xxx_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xxx_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_wc_users_rated: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_wc_users_voted: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    xxx_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xxx_woobe_history: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    xxx_woobe_history_bulk: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xxx_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xxx_yoast_indexable: Data: 1.70MB + Index: 0.53MB + Engine MyISAM
    xxx_yoast_indexable_hierarchy: Data: 0.09MB + Index: 0.25MB + Engine MyISAM
    xxx_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    xxx_yoast_primary_term: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    xxx_yoast_seo_links: Data: 1.47MB + Index: 0.31MB + Engine MyISAM
    xxx_yoast_seo_meta: Data: 0.23MB + Index: 0.28MB + Engine MyISAM
    tds_companies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tds_coupons: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tds_options: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tds_payment_bank: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tds_payment_paypal: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tds_payment_stripe: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tds_plans: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tds_subscriptions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tds_trackings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tds_trackings_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    acf-field: 31
    acf-field-group: 4
    advanced_ads: 13
    attachment: 1651
    customize_changeset: 4
    custom_css: 3
    feedback: 44
    is_search_form: 1
    jb_store_css: 3
    nav_menu_item: 59
    note: 2
    oembed_cache: 192
    page: 24
    popup: 1
    popup_theme: 6
    post: 181
    product: 11
    product_variation: 31
    pt_view: 2
    republish_log: 421
    revision: 352
    shop_coupon: 7
    shop_order: 6
    shop_order_refund: 1
    tdb_templates: 26
    tds_locker: 1
    tube_source: 6
    vc_grid_item: 2
    videogallery: 17
    wmpc-trash: 389
    wpcf7_contact_form: 2
    wpdiscuz_form: 1
    wp_block: 3
    wp_global_styles: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (39) ###
    
    Ad Inserter: by Igor Funa – 2.7.22
    Akismet Anti-Spam: by Automattic – 5.0.1
    Broken Link Checker: by WPMU DEV – 1.11.20
    CoBlocks: by GoDaddy – 2.25.0
    Code Snippets: by Code Snippets Pro – 3.2.1
    Contact Form 7: by Takayuki Miyoshi – 5.6.4
    Easy Table of Contents: by Magazine3 – 2.0.37
    Site Kit by Google: by Google – 1.87.0
    Health Check & Troubleshooting: by The www.ads-software.com community – 1.5.1
    Jetpack Boost: by Automattic - Jetpack Site Speed team – 1.5.4
    Jetpack: by Automattic – 11.5.1
    LiteSpeed Cache: by LiteSpeed Technologies – 5.3
    Loco Translate: by Tim Whitlock – 2.6.3
    MailerLite - Signup forms (official): by MailerLite – 1.6.1
    Performance Lab: by WordPress Performance Team – 1.6.0
    Redirection: by John Godley – 5.3.5
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5
    Search & Replace: by Inpsyde GmbH – 3.2.1
    WooCommerce Pay with Credit Card: by Shopier – 1.0.9
    Simple Banner: by Ryan Petersen – 2.12.2
    tagDiv Cloud Library: by tagDiv – 2.3 | built on 05.10.2022 13:12
    tagDiv Composer: by tagDiv – 3.6 | built on 19.10.2022 13:12
    tagDiv Doctors PRO Demo Plugin: by tagDiv – 1.0.0
    tagDiv EastCoast Check PRO Demo Plugin: by tagDiv – 1.0.0
    tagDiv Newsletter: by tagDiv – 1.7 | built on 05.10.2022 13:12
    tagDiv Social Counter: by tagDiv – 5.1 | built on 05.10.2022 13:12
    tagDiv Opt-In Builder: by tagDiv – 1.3.3 | built on 05.10.2022 13:12
    tagDiv Shop: by tagDiv – 1.6 | built on 05.10.2022 13:12
    Parola Olmadan Ge?ici Giri?: by StoreApps – 1.8.0
    Under Construction: by WebFactory Ltd – 3.93
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.22.23
    
    Converter for Media: by Image Optimization Team by matt plugins – 5.4.0
    BEAR – Bulk Editor and Products Manager Professional for WooCommerce: by realmag777 – 1.1.2
    WooCommerce: by Automattic – 7.1.0
    Yoast SEO: by Team Yoast – 19.10
    Auto Affiliate Links: by Lucian Apostol – 6.2.1.1
    RevivePress: by Sayan Datta – 1.4.1
    WP Content Copy Protection & No Right Click: by wp-buy – 3.5.2
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.9.6
    
    ### Inactive Plugins (0) ###
    
    ### Dropin Plugins (1) ###
    
    object-cache.php: object-cache.php
    
    ### Must Use Plugins (1) ###
    
    Health Check Troubleshooting Mode: by  – 1.8.1
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: TRY (?)
    Currency Position: right_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    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: –
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: #36617 - /shop
    Cart: #36645 - /sepet
    Checkout: #36647 - /odeme
    My account: #36649 - /hesabim
    Terms and conditions: #36772 - /odeme-teslimat-ve-iade-kosullari
    
    ### Theme ###
    
    Name: Newspaper
    Version: 12.1
    Author URL: https://themeforest.net/user/tagDiv/portfolio
    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: Newspaper/woocommerce/archive-product.php
    xxxx - wp-content/plugins/td-woo/templates/woocommerce/cart/cart.php version 3.8.0 is out of date. The core version is 7.0.1
    xxxx -/wp-content/plugins/td-woo/templates/woocommerce/checkout/form-checkout.php
    Newspaper/woocommerce/single-product.php
    
    Outdated Templates: ?
    					
    					
    						Learn how to update
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    settings
    
    Daily Cron: ? Next scheduled: 2022-11-13 14:48:50 +03:00
    Options: ?
    Notes: 36
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 804
    Oldest: 2022-10-12 18:56:28 +0300
    Newest: 2022-11-12 18:03:46 +0300
    
    Failed: 134
    Oldest: 2022-10-24 02:11:00 +0300
    Newest: 2022-11-11 19:09:07 +0300
    
    Pending: 2
    Oldest: 2022-11-12 19:09:07 +0300
    Newest: 2022-11-13 00:06:11 +0300
    
    ### Status report information ###
    
    Generated at: 2022-11-12 18:06:50 +03:00
    
    • This reply was modified 2 years ago by demiromer.
    Igor H

    (@ihereira)

    Hello,

    Thanks for sending the system report.

    You can temporarily disable all plugins except for WooCommerce, for this purpose you can use Meks Quick Plugin Disabler, which is a plugin that will help you to remember what plugins you currently have active so it’s easy to switch them back on. Link: https://www.ads-software.com/plugins/meks-quick-plugin-disabler/

    May I ask when all plugins except WooCommerce are disabled, is the issue still present?

    Thread Starter demiromer

    (@demiromer)

    Hi Igor,
    I have tried exactly what you have requested and unfortunately, the problem still persists.

    cheers

    • This reply was modified 2 years ago by demiromer.
    Thread Starter demiromer

    (@demiromer)

    Hi Igor
    did you able to reproduce the defect?
    KR,

    Igor H

    (@ihereira)

    Hi @demiromer

    Sorry for the delay in responding.

    I was checking on my testing site that is using WooCommerce, and it is the expected behavior, I can add products to the cart using a different email (not related to the coupon), then I added the coupon (and it looks it is working on the cart page) but once we are at checkout page, the validation rejects the coupon because the email is not related to it. Please check screenshot:


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

    Is the coupon being validated at the checkout page on your site? Let us know if there are any questions.

    Thread Starter demiromer

    (@demiromer)

    This is really interesting because I retested with also another new test user but the problem still persist on checkout page aswell ?? seems like a valid code

    would you please share the coupon settings with me and any other coupon related configuration … I want to compare…

    also couldn’t be the validation processed in the cart, otherwise it is not a good customer experience (first saying valid at cart, then saying opps you cant at the checkout)

    Also I’d like to ask, does the validation process checks the billing address or delivery address or both?
    Would you please also run the test with this approach?

    • This reply was modified 2 years ago by demiromer.
    Saif

    (@babylon1999)

    Hello @demiromer,

    This is really interesting because I retested with also another new test user but the problem still persist on checkout page aswell ?? seems like a valid code

    Actually, the email restriction is applied to the billing email but since you don’t submit the email in the cart, the restriction is not applied yet.

    I tried to replicate the scenario and indeed I can see the code applied in the checkout, but it will be removed once I try to purchase the product.

    I understand how this can be deceiving to your customers, an easy route to solve the problem is by removing the coupon code functionality from the cart page.

    Here’s a snippet that can help you:

    // Remove coupon field 
    function Remove_Coupons_Is_cart( $enabled ) {
    
    	if ( is_cart() ) {
    		$enabled = false;
    	}
    
    	return $enabled;
    }
    add_filter( 'woocommerce_coupons_enabled', 'Remove_Coupons_Is_cart' );

    You can add it to your functions.php file or use a plugin like Code snippet.

    Hope this helps!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Coupon restrictions not working’ is closed to new replies.