Coupon rule not working
-
Hi, i have a problem. I have a discount of 50% directly on some products and a discount code of 10% to use but only if the product has full price. But thats not working, the coupon applies on every product, also if it has a discount.
-
Hello,
You can restrict coupon usage under Marketing > Coupons > [Your Coupon] > Usage Restriction. Please check out this documentation for more info: https://docs.woocommerce.com/document/coupon-management/
If the restriction is not working properly, could you share a sample product URL (a product with the 50% discount applied) as well as a copy of your site’s 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.
Here’s the link to the discounted product: https://bevilacquafirenze.it/product/1402-show-06/
I already enabled Usage restrictions to not enable it when products are on sale, but it gets ignored and the coupon is applied anyway.
I tried going back to an older version of woocommerce (4.9) but that did not work.
### WordPress Environment ### WordPress address (URL): https://bevilacquafirenze.it Site address (URL): https://bevilacquafirenze.it WC Version: 4.9.2 REST API Version: ? 4.9.2 WC Blocks Version: ? 4.0.0 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.8.3 Log Directory Writable: ? WP Version: ? 5.6.2 - è disponibile una versione più recente di WordPress (5.7) WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: it_IT External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.27 PHP Post Max Size: 256 MB PHP Time Limit: 0 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1g-fips SUHOSIN Installed: – MySQL Version: 5.7.32-35-log Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.9.2 WC Database Prefix: wpqh_ Dimensione totale database: 97.13MB Dimensione dati database: 64.32MB Dimensione indice database: 32.81MB wpqh_woocommerce_sessions: Dati: 2.02MB + indice: 0.02MB + motore InnoDB wpqh_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wpqh_woocommerce_order_items: Dati: 0.08MB + indice: 0.02MB + motore InnoDB wpqh_woocommerce_order_itemmeta: Dati: 1.52MB + indice: 0.44MB + motore InnoDB wpqh_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wpqh_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_actionscheduler_actions: Dati: 0.42MB + indice: 0.38MB + motore InnoDB wpqh_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_actionscheduler_logs: Dati: 0.25MB + indice: 0.22MB + motore InnoDB wpqh_berocket_termmeta: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_braapf_product_stock_status_parent: Dati: 0.13MB + indice: 0.09MB + motore InnoDB wpqh_braapf_product_variation_attributes: Dati: 0.14MB + indice: 0.28MB + motore InnoDB wpqh_braapf_term_taxonomy_hierarchical: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wpqh_braapf_variation_attributes: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_commentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_comments: Dati: 0.22MB + indice: 0.25MB + motore InnoDB wpqh_elfsight_instagram_feed_widgets: Dati: 0.00MB + indice: 0.00MB + motore MyISAM wpqh_et_bloom_stats: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_icl_content_status: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_icl_core_status: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_icl_flags: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_icl_languages: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_icl_languages_translations: Dati: 0.19MB + indice: 0.11MB + motore InnoDB wpqh_icl_locale_map: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_icl_message_status: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_icl_mo_files_domains: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_icl_node: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_icl_reminders: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_icl_strings: Dati: 2.52MB + indice: 6.48MB + motore InnoDB wpqh_icl_string_batches: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_icl_string_packages: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_icl_string_pages: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_icl_string_positions: Dati: 0.06MB + indice: 0.02MB + motore InnoDB wpqh_icl_string_status: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_icl_string_translations: Dati: 0.45MB + indice: 0.33MB + motore InnoDB wpqh_icl_string_urls: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_icl_translate: Dati: 2.52MB + indice: 0.11MB + motore InnoDB wpqh_icl_translate_job: Dati: 0.05MB + indice: 0.02MB + motore InnoDB wpqh_icl_translations: Dati: 0.47MB + indice: 1.22MB + motore InnoDB wpqh_icl_translation_batches: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_icl_translation_downloads: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_icl_translation_status: Dati: 3.52MB + indice: 0.11MB + motore InnoDB wpqh_i_world_map: Dati: 0.20MB + indice: 0.00MB + motore InnoDB wpqh_ju_queue: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_mailchimp_carts: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_mailchimp_jobs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_options: Dati: 5.31MB + indice: 1.67MB + motore InnoDB wpqh_pmxe_exports: Dati: 0.41MB + indice: 0.00MB + motore InnoDB wpqh_pmxe_google_cats: Dati: 0.39MB + indice: 0.00MB + motore InnoDB wpqh_pmxe_posts: Dati: 1.52MB + indice: 0.00MB + motore InnoDB wpqh_pmxe_templates: Dati: 0.05MB + indice: 0.00MB + motore InnoDB wpqh_pmxi_files: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_pmxi_history: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_pmxi_images: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_pmxi_imports: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_pmxi_posts: Dati: 0.08MB + indice: 0.09MB + motore InnoDB wpqh_pmxi_templates: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_postmeta: Dati: 20.55MB + indice: 15.06MB + motore InnoDB wpqh_posts: Dati: 3.52MB + indice: 1.25MB + motore InnoDB wpqh_pts_tables: Dati: 0.31MB + indice: 0.00MB + motore InnoDB wpqh_revslider_css: Dati: 0.13MB + indice: 0.00MB + motore InnoDB wpqh_revslider_layer_animations: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_revslider_navigations: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_revslider_sliders: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_revslider_slides: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_revslider_static_slides: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_termmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_terms: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_term_relationships: Dati: 0.44MB + indice: 0.33MB + motore InnoDB wpqh_term_taxonomy: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_usermeta: Dati: 1.52MB + indice: 0.55MB + motore InnoDB wpqh_users: Dati: 0.06MB + indice: 0.05MB + motore InnoDB wpqh_wc_admin_notes: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wc_admin_note_actions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_wc_category_lookup: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wc_customer_lookup: Dati: 0.05MB + indice: 0.03MB + motore InnoDB wpqh_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_wc_order_product_lookup: Dati: 0.06MB + indice: 0.06MB + motore InnoDB wpqh_wc_order_stats: Dati: 0.05MB + indice: 0.05MB + motore InnoDB wpqh_wc_order_tax_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_wc_product_meta_lookup: Dati: 0.30MB + indice: 0.58MB + motore InnoDB wpqh_wc_reserved_stock: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_wdr_order_discounts: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wdr_order_item_discounts: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wdr_rules: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wfblockediplog: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wfblocks7: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wpqh_wfconfig: Dati: 0.50MB + indice: 0.00MB + motore InnoDB wpqh_wfcrawlers: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wffilechanges: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wffilemods: Dati: 5.52MB + indice: 0.00MB + motore InnoDB wpqh_wfhits: Dati: 0.08MB + indice: 0.05MB + motore InnoDB wpqh_wfhoover: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_wfissues: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wpqh_wfknownfilelist: Dati: 2.52MB + indice: 0.00MB + motore InnoDB wpqh_wflivetraffichuman: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_wflocs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wflogins: Dati: 0.20MB + indice: 0.06MB + motore InnoDB wpqh_wfls_2fa_secrets: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_wfls_settings: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wfnotifications: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wfpendingissues: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wpqh_wfreversecache: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wfsnipcache: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wpqh_wfstatus: Dati: 0.13MB + indice: 0.09MB + motore InnoDB wpqh_wftrafficrates: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wpmf_queue: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_wpmm_subscribers: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wpqh_yith_wcwl: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_yith_wcwl_lists: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wpqh_yoast_indexable: Dati: 3.52MB + indice: 1.22MB + motore InnoDB wpqh_yoast_indexable_hierarchy: Dati: 0.08MB + indice: 0.08MB + motore InnoDB wpqh_yoast_migrations: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wpqh_yoast_primary_term: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wpqh_yoast_seo_links: Dati: 0.11MB + indice: 0.13MB + motore InnoDB wpqh_yoast_seo_meta: Dati: 0.47MB + indice: 0.00MB + motore InnoDB ### Post Type Counts ### agni_block: 2 agni_slides: 2 attachment: 3784 awdp_pt_rules: 1 br_product_filter: 1 ct_size_guide: 11 custom_css: 1 mc4wp-form: 1 nav_menu_item: 22 o-discount: 1 oembed_cache: 3 page: 103 popup_theme: 6 portfolio: 24 post: 2 product: 379 product_variation: 2097 revision: 23 shop_coupon: 2 shop_order: 207 shop_order_refund: 4 wpcf7_contact_form: 3 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (34) ### WPML Multilingual CMS: by OnTheGoSystems – 4.4.9 Advanced noCaptcha & invisible Captcha: by Shamim Hasan – 6.1.5 Agni Halena: by AgniDesigns – 1.1.4 Akismet Anti-Spam: by Automattic – 4.1.9 Classic Editor: by WordPress Contributors – 1.6 Colorlib Login Customizer: by Colorlib – 1.2.99 Contact Form 7: by Takayuki Miyoshi – 5.4 createIT Size Guide Plugin: by createIT – 3.6 Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.1.1 Enable jQuery Migrate Helper: by The WordPress Team – 1.3.0 Envato Market: by Envato – 2.0.6 Google Analytics Dashboard per WP (GADWP): by ExactMetrics – 6.6.2 Cookie and Consent Solution for the GDPR & ePrivacy: by iubenda – 2.4.0 WPBakery Page Builder: by Michael M - WPBakery.com – 6.5.0 Mailchimp for WooCommerce: by Mailchimp – 2.5.0 MC4WP: Mailchimp for WordPress: by ibericode – 4.8.3 MC4WP: WPML compatibility: by ibericode – 1.0.1 SG Optimizer: by SiteGround – 5.7.16 WooCommerce Dynamic Pricing & Discounts: by RightPress – 2.3.9 Advanced AJAX Product Filters for WooCommerce: by BeRocket – 1.5.2.10 Checkout Manager for WooCommerce: by QuadLayers – 5.3.5 WooCommerce Google Analytics Pro: by SkyVerge – 1.7.1 WooCommerce Multilingual: by OnTheGoSystems – 4.11.3 Woocommerce to Unicredit PagOnline Imprese: by WordPress Chef – 1.0.5 WooCommerce: by Automattic – 4.9.2 (aggiornamento alla versione 5.1.0 disponibile) Wordfence Security: by Wordfence – 7.4.14 Yoast SEO: by Team Yoast – 15.9.2 WP All Export: by Soflyy – 1.2.7 WP Media folder: by Joomunited – 5.3.14 WPML Media: by OnTheGoSystems – 2.6.3 WPML String Translation: by OnTheGoSystems – 3.1.7 WPML Translation Management: by OnTheGoSystems – 2.10.5 Smart Coupons for WooCommerce: by WebToffee – 1.2.8 YITH WooCommerce Wishlist: by YITH – 3.0.20 ### Inactive Plugins (0) ### ### Settings ### API Enabled: ? Force SSL: – Currency: EUR (€) Currency Position: right 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: – ### WC Pages ### Shop base: #3050 - /shopen/ Carrello: #3671 - /cart/ Pagamento: #3672 - /checkout/ Il mio account: #8 - /my-account/ Termini e condizioni: #1705 - /terms-conditions/ ### Theme ### Name: Halena child Version: 1.0.2 Author URL: https://themeforest.net/user/AgniHD Child Theme: ? Parent Theme Name: Halena Parent Theme Version: 1.5.9 Parent Theme Author URL: https://agnidesigns.com WooCommerce Support: ? ### Templates ### Overrides: halena/woocommerce/archive-product.php halena/woocommerce/cart/cart-shipping.php halena/woocommerce/cart/cart.php halena/woocommerce/checkout/form-checkout.php halena/woocommerce/checkout/form-coupon.php halena/woocommerce/checkout/review-order.php halena/woocommerce/content-product.php halena/woocommerce/content-single-product.php halena/woocommerce/global/quantity-input.php halena/woocommerce/global/sidebar.php halena/woocommerce/global/wrapper-end.php halena/woocommerce/global/wrapper-start.php halena/woocommerce/loop/add-to-cart.php halena/woocommerce/loop/loop-end.php halena/woocommerce/loop/loop-start.php halena/woocommerce/loop/pagination.php halena/woocommerce/loop/price.php halena/woocommerce/loop/result-count.php halena/woocommerce/loop/sale-flash.php halena/woocommerce/myaccount/form-login.php halena/woocommerce/notices/error.php halena/woocommerce/notices/notice.php halena/woocommerce/notices/success.php halena/woocommerce/product-searchform.php halena/woocommerce/single-product/price.php halena/woocommerce/single-product/product-image.php halena/woocommerce/single-product/product-thumbnails.php halena/woocommerce/single-product/rating.php halena/woocommerce/single-product/related.php halena/woocommerce/single-product/share.php halena/woocommerce/single-product/tabs/additional-information.php halena/woocommerce/single-product/tabs/description.php halena/woocommerce/single-product/tabs/tabs.php halena/woocommerce/single-product/title.php halena/woocommerce/single-product/up-sells.php halena/woocommerce/single-product.php halena/woocommerce/content-product_cat.php versione 2.6.1 è obsoleta. La versione attuale è 4.7.0 halena/woocommerce/taxonomy-product_cat.php versione 1.6.4 è obsoleta. La versione attuale è 4.7.0 Outdated Templates: ? Scopri come aggiornare ### Action Scheduler ### Completato: 1.050 Oldest: 2021-02-08 11:15:51 +0100 Newest: 2021-03-11 10:24:43 +0100 Operazione non riuscita: 1 Oldest: 2020-04-30 04:09:15 +0200 Newest: 2020-04-30 04:09:15 +0200 In attesa: 2 Oldest: 2021-03-11 10:44:35 +0100 Newest: 2021-03-11 11:24:43 +0100
Hi,
Thank you for your reply. I see that you are currently using Smart Coupons . Is there any chance you have applied additional conditions via the plugin? Also, can you run a conflict test to check it the issue is caused by your theme or plugin?
hi, i tried deactivating smart coupons but the problem still persists.
i created a coupon of 1% so you can try: bevi1
Hello,
i created a coupon of 1% so you can try: bevi1
Thank you. I just tried on my end and the coupon did go through.
I understand you’ve disabled Smart Coupons, but could you also (1) temporarily switch your theme to Storefront and (2) disable all plugins except for WooCommerce?
This looks like a conflict issue with your theme or plugin. It could be with a plugin that is not related to coupons. So please try the above and let me know if the issue goes away.
We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.
- The topic ‘Coupon rule not working’ is closed to new replies.