Promo code that does not work depending on the type of discount chosen
-
Hello,
I am the webmaster of my client’s website https://latelierdimages.fr/.
When you create a coupon code with the discount type ‘Percentage discount’, it works in the shopping cart. But when you select ‘Fixed basket discount’, it doesn’t work anymore.
I have tried several configurations with different promo codes and I have identified a problem with the discount type.
Can you please help me to solve this problem?
The page I need help with: [log in to see the link]
-
Hello @alexisfontana74,
When you create a coupon code with the discount type ‘Percentage discount’, it works in the shopping cart. But when you select ‘Fixed basket discount’, it doesn’t work anymore.
If I understand this correctly, coupons work fine when choosing a percentage discount but not a fixed basket.
Do you get any behaviour when applying the fixed basked code?
Could you please share a copy of your site’s System Status so we can get a better idea of what’s going on? 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.
Also, please check the fatal error logs (if any) from WooCommerce > Status > Logs and choose from the drop-down menu the fatal-errors.log`
Look forward to hearing back from you.
Hello,
Thank you for your feedback.
Yes I have a behavior, I have the error message that the code does not work.
Here is the status of the system:
### WordPress Environment ### WordPress address (URL): https://latelierdimages.fr Site address (URL): https://latelierdimages.fr WC Version: 7.0.0 REST API Version: ? 7.0.0 WC Blocks Version: ? 8.5.1 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0.3 WP Multisite: – WP Memory Limit: 4 Go WP Debug Mode: ? WP Cron: ? Language: fr_FR External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.32 PHP Post Max Size: 512 Mo PHP Time Limit: 360 PHP Max Input Vars: 2000000 cURL Version: 7.85.0 OpenSSL/1.1.1q SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.36-MariaDB Max Upload Size: 512 Mo Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.9.3 WC Database Prefix: wp_ Taille totale de la base de données: 118.65MB Taille de la base de données: 89.58MB Taille de l’index: 29.07MB wp_woocommerce_sessions: Données?: 9.59MB + Index?: 0.19MB + Moteur MyISAM wp_woocommerce_api_keys: Données?: 0.00MB + Index?: 0.01MB + Moteur MyISAM wp_woocommerce_attribute_taxonomies: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_woocommerce_downloadable_product_permissions: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_woocommerce_order_items: Données?: 1.01MB + Index?: 0.57MB + Moteur MyISAM wp_woocommerce_order_itemmeta: Données?: 6.85MB + Index?: 4.96MB + Moteur MyISAM wp_woocommerce_tax_rates: Données?: 0.00MB + Index?: 0.01MB + Moteur MyISAM wp_woocommerce_tax_rate_locations: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_woocommerce_shipping_zones: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_woocommerce_shipping_zone_locations: Données?: 0.01MB + Index?: 0.02MB + Moteur MyISAM wp_woocommerce_shipping_zone_methods: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_woocommerce_payment_tokens: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_woocommerce_payment_tokenmeta: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_woocommerce_log: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_actionscheduler_actions: Données?: 1.20MB + Index?: 0.97MB + Moteur InnoDB wp_actionscheduler_claims: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_actionscheduler_groups: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_actionscheduler_logs: Données?: 0.47MB + Index?: 0.36MB + Moteur InnoDB wp_adtribes_my_conversions: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_aepc_custom_audiences: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_aepc_logs: Données?: 0.20MB + Index?: 0.00MB + Moteur InnoDB wp_aiowps_debug_log: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_aiowps_events: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_aiowps_failed_logins: Données?: 1.02MB + Index?: 0.45MB + Moteur InnoDB wp_aiowps_global_meta: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_aiowps_login_activity: Données?: 0.06MB + Index?: 0.00MB + Moteur InnoDB wp_aiowps_login_lockdown: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB wp_aiowps_permanent_block: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_cli_cookie_scan: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_cli_cookie_scan_categories: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_cli_cookie_scan_cookies: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB wp_cli_cookie_scan_url: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_cli_scripts: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_commentmeta: Données?: 0.02MB + Index?: 0.03MB + Moteur MyISAM wp_comments: Données?: 2.15MB + Index?: 1.02MB + Moteur MyISAM wp_duplicator_packages: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_e_events: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_e_notes: Données?: 0.02MB + Index?: 0.17MB + Moteur InnoDB wp_e_notes_users_relations: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB wp_e_submissions: Données?: 1.52MB + Index?: 1.52MB + Moteur InnoDB wp_e_submissions_actions_log: Données?: 0.20MB + Index?: 0.55MB + Moteur InnoDB wp_e_submissions_values: Données?: 3.52MB + Index?: 0.36MB + Moteur InnoDB wp_links: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_lpc_inward_label: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB wp_lpc_outward_label: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB wp_mgmlp_folders: Données?: 0.02MB + Index?: 0.03MB + Moteur MyISAM wp_options: Données?: 14.70MB + Index?: 0.94MB + Moteur MyISAM wp_postmeta: Données?: 30.25MB + Index?: 11.18MB + Moteur MyISAM wp_posts: Données?: 9.39MB + Index?: 0.85MB + Moteur MyISAM wp_revslider_css: Données?: 0.09MB + Index?: 0.00MB + Moteur MyISAM wp_revslider_layer_animations: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_revslider_navigations: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_revslider_sliders: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_revslider_slides: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_revslider_static_slides: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_snippets: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_termmeta: Données?: 0.02MB + Index?: 0.02MB + Moteur MyISAM wp_terms: Données?: 0.02MB + Index?: 0.04MB + Moteur MyISAM wp_term_relationships: Données?: 0.04MB + Index?: 0.09MB + Moteur MyISAM wp_term_taxonomy: Données?: 0.02MB + Index?: 0.03MB + Moteur MyISAM wp_usermeta: Données?: 3.60MB + Index?: 2.20MB + Moteur MyISAM wp_users: Données?: 0.20MB + Index?: 0.19MB + Moteur MyISAM wp_wcpdf_invoice_number: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_wcpdf_invoice_number_2021: Données?: 0.02MB + Index?: 0.01MB + Moteur MyISAM wp_wcpdf_packing_slip_number: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_wc_admin_notes: Données?: 0.06MB + Index?: 0.00MB + Moteur InnoDB wp_wc_admin_note_actions: Données?: 0.05MB + Index?: 0.02MB + Moteur InnoDB wp_wc_category_lookup: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_wc_customer_lookup: Données?: 0.30MB + Index?: 0.22MB + Moteur InnoDB wp_wc_download_log: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_wc_order_coupon_lookup: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB wp_wc_order_product_lookup: Données?: 1.52MB + Index?: 0.77MB + Moteur InnoDB wp_wc_order_stats: Données?: 0.44MB + Index?: 0.42MB + Moteur InnoDB wp_wc_order_tax_lookup: Données?: 0.28MB + Index?: 0.23MB + Moteur InnoDB wp_wc_product_attributes_lookup: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_wc_product_download_directories: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_wc_product_meta_lookup: Données?: 0.09MB + Index?: 0.13MB + Moteur InnoDB wp_wc_rate_limits: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_wc_reserved_stock: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_wc_tax_rate_classes: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB wp_wc_webhooks: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM wp_wpfm_backup: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB wp_yith_wcwl: Données?: 0.01MB + Index?: 0.01MB + Moteur MyISAM wp_yith_wcwl_lists: Données?: 0.02MB + Index?: 0.04MB + Moteur MyISAM ### Post Type Counts ### attachment: 1291 cookielawinfo: 6 custom_css: 1 elementor_library: 2 elementor-hf: 2 galleries: 1 GOTMLS_quarantine: 24 mgmlp_media_folder: 154 nav_menu_item: 13 oembed_cache: 5 page: 16 post: 66 product: 292 product_variation: 204 revision: 714 shop_coupon: 21 shop_order: 5232 shop_order_refund: 36 wafs: 1 wp_global_styles: 1 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (38) ### ManageWP - Worker: par GoDaddy – 4.9.14 Livemesh Addons for Elementor: par Livemesh – 7.2.3 Template Library and Redux Framework: par Extendify – 4.3.19 Elementor Addon Elements: par WPVibes – 1.11.16 Akismet Anti-Spam: par Automattic – 5.0.1 All In One WP Security: par All In One WP Security & Firewall Team – 5.1.0 Breadcrumb NavXT: par John Havlik – 7.1.0 Contact Form 7: par Takayuki Miyoshi – 5.6.4 CookieYes | GDPR Cookie Consent: par CookieYes – 3.0.3 Yoast Duplicate Post: par Enrico Battocchi & l’équipe Yoast – 4.5 Elementor Pro: par Elementor.com – 3.7.7 Elementor: par Elementor.com – 3.7.2 Enable Media Replace: par ShortPixel – 4.0.0 Envato Market: par Envato – 2.0.7 Essential Addons for Elementor: par WPDeveloper – 5.3.2 Facebook for WooCommerce: par Facebook – 2.6.27 Elementor Header & Footer Builder: par Brainstorm Force Nikhil Chavan – 1.6.13 WooCommerce Quickview: par Iconic – 3.4.5 Jetpack: par Automattic – 11.4 Klaviyo: par Klaviyo Inc. – 3.0.4 HubSpot All-In-One Marketing - Formulaires, fenêtres surgissantes, discussion en direct: par HubSpot – 9.0.123 Loco Translate: par Tim Whitlock – 2.6.2 Media Library Folders Reset: par Max Foundry – 8.0.2 Meta Box: par MetaBox.io – 5.6.7 oAuth Twitter Feed for Developers: par Liam Gladdy (Storm Consultancy) – 2.3.0 Facebook pour WordPress: par Facebook – 3.0.7 One Click Demo Import: par OCDI – 3.1.2 Product Feed PRO for WooCommerce: par AdTribes.io – 11.9.5 WooCommerce Advanced Free Shipping: par Jeroen Sormani – 1.1.5 WooCommerce Cart Tab: par jameskoster – 1.1.2 Table Rate Shipping for WooCommerce: par JEM Plugins – 2.26 WooCommerce Stripe Gateway: par WooCommerce – 6.9.0 Advanced Order Export Pour WooCommerce (Pro): par AlgolPlus – 3.3.2 PDF Invoices & Packing Slips for WooCommerce: par WP Overnight – 3.2.1 WooCommerce Shipping & Tax: par WooCommerce – 1.26.3 WooCommerce: par Automattic – 7.0.0 YITH WooCommerce Coupon Email System Premium: par YITH – 1.20.0 YITH WooCommerce Wishlist: par YITH – 3.14.0 ### Inactive Plugins (8) ### Colissimo shipping methods for WooCommerce: par Colissimo – 1.7.1 GTM4WP: par Thomas Geiger – 1.16.1 Media Library Folders: par Max Foundry – 8.0.2 NavMenu Addon For Elementor: par ThemeIsle – 1.1.6 Really Simple SSL: par Really Simple Plugins – 5.3.5 WooCommerce Colissimo Shipping Rates: par WooCommerce – 1.1.9 WooCommerce Dynamic Pricing & Discounts: par RightPress – 2.3.9 WooCommerce PayPal Checkout Gateway: par WooCommerce – 2.1.3 ### Must Use Plugins (2) ### Elementor Safe Mode: par Elementor.com – 1.0.0 ManageWP - Worker Loader: par GoDaddy – ### 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: ? Enforce Approved Product Download Directories: – ### WC Pages ### Base de la boutique: #157 - /boutique/ Panier: #158 - /panier/ Commander: #159 - /commande/ Mon compte: #160 - /mon-compte/ Conditions générales de vente et d’utilisation: ? Page non définie ### Theme ### Name: Atelier Version: 2.9.0 Author URL: https://www.swiftideas.com Child Theme: ? – Si vous modifiez WooCommerce sur un thème parent que vous n’avez pas construit personnellement nous vous recommandons d’utiliser un thème enfant. Voir?: Comment créer un thème enfant 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 version 4.1.0 est obsolète. La version du noyau est 6.0.0 atelier/woocommerce/single-product/add-to-cart/external.php atelier/woocommerce/single-product/add-to-cart/grouped.php 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: ? Apprenez comment mettre à jour ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour 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-10-28 07:11:02 +02:00 Options: ? Notes: 102 Onboarding: completed ### Action Scheduler ### Terminé: 2?106 Oldest: 2022-09-26 14:11:21 +0200 Newest: 2022-10-27 13:12:58 +0200 échoué: 612 Oldest: 2020-07-16 21:57:15 +0200 Newest: 2022-04-28 03:44:31 +0200 En attente: 3 Oldest: 2022-10-27 13:14:09 +0200 Newest: 2022-10-27 16:28:01 +0200 ### Status report information ### Generated at: 2022-10-27 13:14:14 +02:00
Sincerely,
Thanks for sending the System Status Report.
WC Database Version: 6.9.3
As a first step, please update your WooCommerce database by going to
WooCommerce > Status > Tools > Update Database
.Outdated Templates: ?
Please update these outdated templates as well: https://woocommerce.com/document/fix-outdated-templates-woocommerce/
Yes I have a behavior, I have the error message that the code does not work.
Can you please share with us a clear screenshot of what you see on your end or the error you encountered so that we could address you more effectively?
If you don’t already have a screenshot service installed, you can try https://snipboard.io or https://skitch.com/. You can share the direct link to the image as a response to this topic.
Hello,
Thank you for your feedback.
I have updated the WooCommerce database.
Here is the screenshot of the message when the code is in discount type: percentage discount: https://snipboard.io/x1p7al.jpg.
Here is the screenshot of the message when the code is in discount type: fixed cart discount: https://snipboard.io/so8blc.jpg.
The products in the basket are identical.
Why is there this problem?
Hello,
Can you please upload the first screenshot again? I could not see it ??
Is the site receiving any error message under WooCommerce > System Status > Logs (if any)?
Let us know, thank you.
Hello,
Thank you for your feedback.
Here is the screenshot: https://snipboard.io/AMzdX6.jpg.
I don’t have the impression that the action generates an error in the log.
Sincerely,
Hi,
Thanks for the info.I understand the message received is:
Sorry, this coupon is not applicable to the products...
Please navigate to WP Dashboard > marketing > coupons > look for your coupon > go to Usage restrictions. Can you send a screenshot of what you see on there, please?
Does the coupon is restricted to certain products, categories?
Link to image: https://snipboard.io/cqKRu4.jpgLet us know what you find.
Thank you for your feedback.
Yes, however, when switching the promo code to percentage discount, keeping the restriction, the error message does not appear.
Can you please help me?
If I need to provide you with the login details to access the site’s dashboard, please do not hesitate.
Hello @alexisfontana74,
Can you please try disabling the following plugin?
YITH WooCommerce Coupon Email System Premium: par YITH – 1.20.0
If that doesn’t take care of it, then the next step should be a full conflict test which you can perform by:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not comfortable doing all of this on the live version of your site, you can create a staging environment using WP-STAGING.
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Let us know your findings.
Hello,
Thanks for your feedback.
I disabled the ITH WooCommerce Coupon Email System Premium module but it didn’t fix the problem.
So I’m going to put the site on a staging in order to test it.
I’ll let you know as soon as I have something new.
Best regards,
I deactivated the theme and then all the extensions and I still get the error message.
What is your solution?
I understand that after disabling all plugins and switching to the default Storefront theme, the error still persists, is that correct?
Can you please provide us with a screenshot of the Coupons Settings for us to check this further?
If you don’t already have a screenshot service installed, you can try https://snipboard.io or https://skitch.com/. You can share the direct link to the image as a response to this topic.
`Hello,
Thank you for your feedback.
Here is the screenshot: https://snipboard.io/sx98rX.jpg
The operation for this promo code is finished but if we put a date not yet exceeded, we have the problem.
I hope you can help me,
Thank you for providing the screenshot.
Can you please provide the screenshot of the Usage Restriction and Usage Limit tabs too?
Furthermore, the coupon is already expired, hence, I cannot test this anymore. Can you please extend the card expiration so that I could check this further?
Thanks!
Hello,
Thank you for your feedback.
Here are the screenshots:
Usage restriction : https://snipboard.io/d7CvZT.jpg
Usage limit : https://snipboard.io/hu1B0w.jpgI changed the promo code by adding -test to the original promo code + moved the expiration date to November 20, 2022.
I am still available.
Sincerely,`
- The topic ‘Promo code that does not work depending on the type of discount chosen’ is closed to new replies.