• Resolved bociakrodyl

    (@bociakrodyl)


    Hello,

    we’re having an issue with the coupon percentage being incorrectly charged.

    In one order, the same product is purchased several times.
    The applied coupon gives different values for subsequent products.

    Example:

    The first and the second product in this order:

    Product cost 199.20 €
    Discount 25.90 €
    Total 173.30 €

    and next products:

    Product cost 199.20 €
    Discount 25.89 €
    Total 173.31 €

    Here is the print screen:
    https://en.cs-lab.eu/discount.png

    Such calculation of percentages makes accounting in the company more difficult.
    I will be grateful for any hint.

    kind regards
    Tomasz

    `
    ### WordPress Environment ###
    
    WordPress address (URL): https://en.cs-lab.eu
    Site address (URL): https://en.cs-lab.eu
    WC Version: 7.4.1
    REST API Version: ?</img> 7.4.1
    WC Blocks Version: ?</img> 9.4.4
    Action Scheduler Version: ?</img> 3.5.4
    Log Directory Writable: ?</img>
    WP Version: 6.1.1
    WP Multisite: –
    WP Memory Limit: 2 GB
    WP Debug Mode: –
    WP Cron: ?</img>
    Language: en_GB
    External object cache: ?</img>
    
    ### Server Environment ###
    
    Server Info: Apache/2
    PHP Version: 7.4.33
    PHP Post Max Size: 512 MB
    PHP Time Limit: 600
    PHP Max Input Vars: 1000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.5.17-MariaDB-log
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?</img>
    fsockopen/cURL: ?</img>
    SoapClient: ?</img>
    DOMDocument: ?</img>
    GZip: ?</img>
    Multibyte String: ?</img>
    Remote Post: ?</img>
    Remote Get: ?</img>
    
    ### Database ###
    
    WC Database Version: 7.4.1
    WC Database Prefix: fo_
    Total Database Size: 126,00MB
    Database Data Size: 94,00MB
    Database Index Size: 32,00MB
    fo_woocommerce_sessions: Data: 0,23MB + Index: 0,02MB + Engine InnoDB
    fo_woocommerce_api_keys: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_woocommerce_attribute_taxonomies: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_woocommerce_downloadable_product_permissions: Data: 0,02MB + Index: 0,06MB + Engine InnoDB
    fo_woocommerce_order_items: Data: 1,52MB + Index: 0,16MB + Engine InnoDB
    fo_woocommerce_order_itemmeta: Data: 4,52MB + Index: 4,03MB + Engine InnoDB
    fo_woocommerce_tax_rates: Data: 0,02MB + Index: 0,06MB + Engine InnoDB
    fo_woocommerce_tax_rate_locations: Data: 0,02MB + Index: 0,05MB + Engine InnoDB
    fo_woocommerce_shipping_zones: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_woocommerce_shipping_zone_locations: Data: 0,02MB + Index: 0,05MB + Engine InnoDB
    fo_woocommerce_shipping_zone_methods: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_woocommerce_payment_tokens: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_woocommerce_payment_tokenmeta: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_woocommerce_log: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_actionscheduler_actions: Data: 0,14MB + Index: 0,17MB + Engine InnoDB
    fo_actionscheduler_claims: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_actionscheduler_groups: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_actionscheduler_logs: Data: 0,11MB + Index: 0,09MB + Engine InnoDB
    fo_adtribes_my_conversions: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_aelia_dismissed_messages: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_aelia_exchange_rates_history: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_cerber_files: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_cerber_sets: Data: 1,52MB + Index: 0,00MB + Engine InnoDB
    fo_cerber_uss: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_cli_cookie_scan: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_cli_cookie_scan_categories: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_cli_cookie_scan_cookies: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_cli_cookie_scan_url: Data: 0,05MB + Index: 0,00MB + Engine InnoDB
    fo_cli_scripts: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_cli_visitor_details: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_commentmeta: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_comments: Data: 2,52MB + Index: 1,11MB + Engine InnoDB
    fo_ee_products_sync_list: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_ee_product_sync_call: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_ee_product_sync_data: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_forum_forums: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_forum_polls: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_forum_polls_options: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_forum_polls_votes: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_forum_posts: Data: 0,06MB + Index: 0,14MB + Engine MyISAM
    fo_forum_reactions: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_forum_reports: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_forum_topics: Data: 0,00MB + Index: 0,01MB + Engine MyISAM
    fo_hfcm_scripts: Data: 0,05MB + Index: 0,00MB + Engine InnoDB
    fo_layerslider: Data: 0,30MB + Index: 0,00MB + Engine InnoDB
    fo_layerslider_revisions: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_links: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_omnibus_price_logger: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_options: Data: 8,45MB + Index: 1,63MB + Engine InnoDB
    fo_postmeta: Data: 21,55MB + Index: 9,03MB + Engine InnoDB
    fo_posts: Data: 19,52MB + Index: 0,66MB + Engine InnoDB
    fo_redirection_404: Data: 0,02MB + Index: 0,05MB + Engine InnoDB
    fo_redirection_groups: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_redirection_items: Data: 0,02MB + Index: 0,09MB + Engine InnoDB
    fo_redirection_logs: Data: 0,02MB + Index: 0,05MB + Engine InnoDB
    fo_relevanssi: Data: 4,52MB + Index: 7,19MB + Engine InnoDB
    fo_relevanssi_log: Data: 1,52MB + Index: 0,38MB + Engine InnoDB
    fo_relevanssi_stopwords: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_termmeta: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_terms: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_term_relationships: Data: 0,06MB + Index: 0,05MB + Engine InnoDB
    fo_term_taxonomy: Data: 0,06MB + Index: 0,03MB + Engine InnoDB
    fo_toolset_associations: Data: 0,02MB + Index: 0,06MB + Engine InnoDB
    fo_toolset_associations_old: Data: 0,02MB + Index: 0,05MB + Engine InnoDB
    fo_toolset_connected_elements: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_toolset_post_guid_id: Data: 0,06MB + Index: 0,06MB + Engine InnoDB
    fo_toolset_relationships: Data: 0,02MB + Index: 0,08MB + Engine InnoDB
    fo_toolset_type_sets: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_usermeta: Data: 4,52MB + Index: 4,03MB + Engine InnoDB
    fo_users: Data: 0,19MB + Index: 0,16MB + Engine InnoDB
    fo_wc_admin_notes: Data: 0,08MB + Index: 0,00MB + Engine InnoDB
    fo_wc_admin_note_actions: Data: 0,05MB + Index: 0,02MB + Engine InnoDB
    fo_wc_category_lookup: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_wc_customer_lookup: Data: 0,20MB + Index: 0,14MB + Engine InnoDB
    fo_wc_download_log: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_wc_order_coupon_lookup: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_wc_order_product_lookup: Data: 0,45MB + Index: 0,38MB + Engine InnoDB
    fo_wc_order_stats: Data: 0,25MB + Index: 0,20MB + Engine InnoDB
    fo_wc_order_tax_lookup: Data: 0,11MB + Index: 0,11MB + Engine InnoDB
    fo_wc_product_attributes_lookup: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_wc_product_download_directories: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_wc_product_meta_lookup: Data: 0,02MB + Index: 0,09MB + Engine InnoDB
    fo_wc_rate_limits: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_wc_reserved_stock: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_wc_tax_rate_classes: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_wc_webhooks: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_wfblockediplog: Data: 0,11MB + Index: 0,00MB + Engine InnoDB
    fo_wfblocks7: Data: 0,02MB + Index: 0,05MB + Engine InnoDB
    fo_wfconfig: Data: 0,48MB + Index: 0,00MB + Engine InnoDB
    fo_wfcrawlers: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_wffilechanges: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_wffilemods: Data: 11,52MB + Index: 0,00MB + Engine InnoDB
    fo_wfhits: Data: 1,41MB + Index: 0,22MB + Engine InnoDB
    fo_wfhoover: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_wfissues: Data: 0,02MB + Index: 0,06MB + Engine InnoDB
    fo_wfknownfilelist: Data: 5,52MB + Index: 0,00MB + Engine InnoDB
    fo_wflivetraffichuman: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_wflocs: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_wflogins: Data: 0,31MB + Index: 0,11MB + Engine InnoDB
    fo_wfls_2fa_secrets: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_wfls_role_counts: Data: 0,00MB + Index: 0,00MB + Engine MEMORY
    fo_wfls_settings: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_wfnotifications: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_wfpendingissues: Data: 0,02MB + Index: 0,06MB + Engine InnoDB
    fo_wfreversecache: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_wfsnipcache: Data: 0,02MB + Index: 0,05MB + Engine InnoDB
    fo_wfstatus: Data: 0,13MB + Index: 0,09MB + Engine InnoDB
    fo_wftrafficrates: Data: 0,02MB + Index: 0,00MB + Engine InnoDB
    fo_yoast_indexable: Data: 0,23MB + Index: 0,13MB + Engine InnoDB
    fo_yoast_indexable_hierarchy: Data: 0,05MB + Index: 0,05MB + Engine InnoDB
    fo_yoast_migrations: Data: 0,02MB + Index: 0,02MB + Engine InnoDB
    fo_yoast_primary_term: Data: 0,02MB + Index: 0,03MB + Engine InnoDB
    fo_yoast_seo_links: Data: 0,34MB + Index: 0,19MB + Engine InnoDB
    fo_yoast_seo_meta: Data: 0,11MB + Index: 0,00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    aiosrs-schema: 2
    attachment: 1140
    cookielawinfo: 27
    custom_css: 1
    et_body_layout: 8
    et_footer_layout: 6
    et_header_layout: 12
    et_pb_layout: 3
    et_template: 33
    et_theme_builder: 1
    nav_menu_item: 30
    oembed_cache: 9
    page: 76
    post: 105
    product: 74
    revision: 1201
    shop_coupon: 7
    shop_order: 2062
    shop_order_refund: 34
    view: 3
    view-template: 5
    wccf_checkout_field: 1
    wccf_product_field: 5
    wccf_user_field: 1
    wp-types-group: 1
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?</img>
    Hide errors from visitors: ?</img>
    
    ### Active Plugins (41) ###
    
    Divi Advanced Tabs: by DiviGear – 1.0.8
    WooCommerce Advance Order Status: by AppZab – 1.1.3
    Asgaros Forum: by Thomas Belser – 2.4.0
    Black Studio TinyMCE Widget: by Black Studio – 2.7.2
    Clean Image Filenames: by Upperdog – 1.4
    Contact Form 7: by Takayuki Miyoshi – 5.7.4
    Delete Me: by Clinton Caldwell – 3.0
    Dg Blog Module: by DiviGear – 1.0.11
    Divi Carousel: by DiviGear – 2.0.26
    Divi Product Carousel: by DiviGear – 2.0.2
    Disable Gutenberg: by Jeff Starr – 2.9
    Divi Image Hover: by Divizoom – 2.0.2
    Duplicate Page: by mndpsingh287 – 4.5.1
    GTM4WP: by Thomas Geiger – 1.16.2
    Conversios.io - All-in-one Google Analytics, Pixels and Product Feed Manager for WooCommerce: by Conversios – 5.3.2
    Header Footer Code Manager: by 99robots – 1.1.32
    WP Armour - Honeypot Anti Spam: by Dnesscarkey – 2.1.2
    Imsanity: by Exactly WWW – 2.8.2
    Meta pixel for WordPress: by Facebook – 3.0.8
    Redirection: by John Godley – 5.3.9
    Relevanssi: by Mikko Saari – 4.18.3
    Responsive Lightbox & Gallery: by dFactory – 2.4.4
    Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.23.3
    
    W3 Total Cache: by BoldGrid – 2.3.0
    GDPR Cookie Consent: by WebToffee – 2.3.9
    CURCY - Multi Currency for WooCommerce: by VillaTheme – 2.1.28
    Product Feed PRO for WooCommerce: by AdTribes.io – 12.3.6
    WooCommerce Bulk Discount: by Rene Puchinger – 3.0
    WooCommerce Custom Fields: by RightPress – 2.3.4
    WooCommerce EU VAT Assistant: by Aelia – 2.0.39.230214
    WooCommerce PayPal Payments: by WooCommerce – 2.0.3
    WooCommerce Table Rate Shipping: by Bolder Elements – 4.0.3
    WooCommerce: by Automattic – 7.4.1 (update to version 7.5.0 is available)
    Wordfence Security: by Wordfence – 7.9.1
    Yoast SEO: by Team Yoast – 20.3
    Omnibus for WooCommerce: by WP Desk – 1.4.3
    WP-PageNavi: by Lester 'GaMerZ' Chan – 2.94.0
    Schema Pro: by Brainstorm Force – 2.7.6
    WP-Sweep: by Lester 'GaMerZ' Chan – 1.1.5
    Social Chat: by QuadLayers – 7.0.2
    
    ### Inactive Plugins (4) ###
    
    Contact Form 7 Image Captcha: by KC Computing – 3.3.5
    EU/UK VAT for WooCommerce: by WPWhale – 2.9.4
    ImageMagick Sharpen Resized Images: by Hans van Eijsden,niwreg – 1.1.7
    WPCode Lite: by WPCode – 2.0.8.1
    
    ### Dropin Plugins (3) ###
    
    advanced-cache.php: advanced-cache.php
    db.php: db.php
    object-cache.php: object-cache.php
    
    ### Settings ###
    
    API Enabled: ?</img>
    Force SSL: –
    Currency: EUR (€)
    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: –
    Order datastore: WC_Order_Data_Store_CPT
    
    ### WC Pages ###
    
    Shop base: #10 - /shop/
    Basket: ?</img> Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.
    Checkout: #12 - /zamowienie/
    My account: #1088 - /moje-konto/
    Terms and conditions: ?</img> Page not set
    
    ### Theme ###
    
    Name: Divi CS-lab
    Version: 1.0.0
    Author URL: https://www.itbvega.pl
    Child Theme: ?</img>
    Parent Theme Name: Divi
    Parent Theme Version: 4.20.2
    Parent Theme Author URL: https://www.elegantthemes.com
    WooCommerce Support: ?</img>
    
    ### Templates ###
    
    Overrides: –
    
    ### WooCommerce PayPal Payments ###
    
    Onboarded: ?</img>
    Shop country code: PL
    WooCommerce currency supported: ?</img>
    Advanced Card Processing available in country: –
    Pay Later messaging available in country: –
    Webhook status: –
    Vault enabled: ?</img>
    Logging enabled: ?</img>
    Reference Transactions: –
    Used PayPal Checkout plugin: –
    Tracking enabled: –
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    new-product-management-experience
    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
    product-variation-management
    settings
    
    Daily Cron: ?</img> Next scheduled: 2023-03-17 12:43:49 +01:00
    Options: ?</img>
    Notes: 118
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 428
    Oldest: 2023-02-14 12:57:06 +0100
    Newest: 2023-03-17 12:01:01 +0100
    
    Failed: 2
    Oldest: 2023-02-21 09:19:20 +0100
    Newest: 2023-03-09 16:13:02 +0100
    
    Pending: 1
    Oldest: 2023-03-18 09:57:04 +0100
    Newest: 2023-03-18 09:57:04 +0100
    
    
    ### Status report information ###
    
    Generated at: 2023-03-17 12:02:09 +01:00
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Saif

    (@babylon1999)

    Hello @bociakrodyl,

    Thank you for the detailed explanation!

    I tried replicating the issue with a 14.94% discount but as you can see below, both products were discounted at the same value.


    Link to image: https://d.pr/i/KiYyQe

    Are these discounts from the default WooCommerce coupons functionality or the WooCommerce Bulk Discount plugin?

    Could you also attach screenshots for the following?

    • WooCommerce > Settings > General (Bottom of page)
    • The coupon settings in Marketing > Coupon

    It’s also worth checking if there are any fatal error logs from WooCommerce > Status > Logs and choosing from the drop-down menu the fatal-errors.log option.


    Look forward to hearing back from you.

    Thread Starter bociakrodyl

    (@bociakrodyl)

    Hi Saif!

    And thanks for jumping into my problem ??

    Yes, this is standard WooCommerce Coupon.

    Here you are the screen shoots:

    https://www.cs-lab.eu/general.png

    https://www.cs-lab.eu/coupon1.png

    https://www.cs-lab.eu/coupon2.png

    https://www.cs-lab.eu/coupon3.png

    king regards
    Tomasz

    Roxy

    (@roxannestoltz)

    Hi @bociakrodyl ,

    Thanks for bringing this to our attention!

    We were able to reproduce this on our end and a Github issue has been opened for this here.

    I’d suggest subscribing to?the Github issue?so that you can stay up to date on any changes as they happen ??

    Cheers!

    Thread Starter bociakrodyl

    (@bociakrodyl)

    Great! Thanks for running the issue on Github!

    kind regards
    Tomasz

    Roxy

    (@roxannestoltz)

    Hi Tomasz ,

    You are very welcome, and thanks again for bringing this to our attention!

    I will go ahead and mark this thread as resolved then, since further updates will be provided on the Github issue.

    On the other hand, if you need any further help – feel free to create a new topic.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Different coupon percentage counting in one order’ is closed to new replies.