• Resolved hitinder

    (@hitinder)


    Hello,
    For some reason the subtotal and total is equal. The breakdown of shipping and vat is displayed but subtotal is showing shipping charges in it.

    In below image subtotal should be 600, instead it is shown as 750, i.e., including shipping charges of 150

    View post on imgur.com

    WP 5.4.2
    Woo 4.2.2

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @hitinder! Can you post your system status report? You can find that by going to WooCommerce > Status in your dashboard, then clicking “Get system report,” then “Copy for support.”

    Do you have any plugins or custom code that affects total/subtotal calculations? Default shipping and tax functionality isn’t what I’m talking about, but additional tax or shipping plugins might be relevant. I’m more thinking of something that changes the way these numbers are displayed in the cart or checkout, though.

    Thread Starter hitinder

    (@hitinder)

    @apmwebdev thank you for the response. Please note that I don’t have any plugin for tax or shipping but, I do have a plugin for the minimum order amount. Also, I have a plugin for bundle products but the products added to the cart are not a bundle.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://fooddemo.storambo.com
    Site address (URL): https://fooddemo.storambo.com
    WC Version: 4.3.0
    REST API Version: ✔ 1.0.10
    WC Blocks Version: ✔ 2.7.1
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ✔ 1.3.0
    Log Directory Writable: ✔
    WP Version: 5.4.2
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: ✔
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.31
    PHP Post Max Size: 1 GB
    PHP Time Limit: 1500
    PHP Max Input Vars: 2000
    cURL Version: 7.62.0
    OpenSSL/1.0.2k
    
    SUHOSIN Installed: –
    MySQL Version: 10.3.23-MariaDB-log-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: 4.3.0
    WC Database Prefix: food_
    Total Database Size: 3.68MB
    Database Data Size: 3.35MB
    Database Index Size: 0.33MB
    food_woocommerce_sessions: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_order_itemmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    food_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_actionscheduler_actions: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    food_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_actionscheduler_logs: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    food_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_loginizer_logs: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_options: Data: 2.24MB + Index: 0.06MB + Engine MyISAM
    food_postmeta: Data: 0.56MB + Index: 0.06MB + Engine MyISAM
    food_posts: Data: 0.46MB + Index: 0.03MB + Engine MyISAM
    food_rank_math_404_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_rank_math_internal_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_rank_math_internal_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_rank_math_redirections: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_rank_math_redirections_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_rank_math_sc_analytics: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_term_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_term_taxonomy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_usermeta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    food_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    food_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_woocommerce_order_alert: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_wpforms_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    food_yith_wcdn_desktop_notification: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 49
    custom_css: 2
    customize_changeset: 20
    elementor_library: 4
    nav_menu_item: 2
    page: 13
    polylang_mo: 1
    popup: 1
    popup_theme: 7
    post: 3
    product: 14
    revision: 38
    shop_coupon: 1
    shop_order: 12
    wcpa_pt_forms: 1
    wp_block: 5
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (19) ###
    
    WP Hide & Security Enhancer: by Nsp Code – 1.6.0.5
    Admin Menu Editor: by Janis Elsts – 1.9.5
    Branda: by WPMU DEV – 3.3.1
    Classic Editor: by WordPress Contributors – 1.5
    Placeholder Image for Woocommerce: by Игорь iTRON Тронь – 1.1 – Installed version not tested with active version of WooCommerce 4.3.0
    Elementor: by Elementor.com – 2.9.13
    Enhanced E-commerce for Woocommerce store: by Tatvic – 2.3.4 – Installed version not tested with active version of WooCommerce 4.3.0
    Food Store - Online Food Delivery & Pickup: by WP Scripts – 1.0.10 – Installed version not tested with active version of WooCommerce 4.3.0
    Loginizer: by Softaculous – 1.4.6
    New Order Notification for Woocommerce: by Mr.Ebabi – 1.2.1
    Order Minimum/Maximum Amount for WooCommerce: by Algoritmika Ltd – 2.2.1 – Installed version not tested with active version of WooCommerce 4.3.0
    Gutenberg Blocks and Template Library by Otter: by ThemeIsle – 1.5.5
    Popup Maker: by Popup Maker – 1.11.0
    Rank Math SEO: by Rank Math – 1.0.45
    W3 Total Cache: by BoldGrid – 0.14.2
    WPC Product Bundles for WooCommerce: by WPClever.net – 5.2.5 – Installed version not tested with active version of WooCommerce 4.3.0
    WooCommerce: by Automattic – 4.3.0
    wpCentral: by Softaculous Ltd. – 1.5.3
    WPForms Lite: by WPForms – 1.6.1
    
    ### Inactive Plugins (2) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.6
    Woo Instant Notifications: by Irdroid – 1.0 – Installed version not tested with active version of WooCommerce 4.3.0
    
    ### Dropin Plugins (3) ###
    
    advanced-cache.php: advanced-cache.php
    db.php: db.php
    object-cache.php: object-cache.php
    
    ### Must Use Plugins (1) ###
    
    wp-hide-loader.php: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    woosb (woosb)
    
    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 visibility should be public
    Cart: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: ❌ Page does not contain the shortcode.
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Neve
    Version: 2.7.4
    Author URL: https://themeisle.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: –
    
    ### Action Scheduler ###
    
    Complete: 68
    Oldest: 2020-07-07 23:32:45 +0000
    Newest: 2020-07-13 06:52:00 +0000
    
    Pending: 3
    Oldest: -0001-11-30 00:00:00 +0000
    Newest: 2020-07-14 06:52:00 +0000
    
    
    Thread Starter hitinder

    (@hitinder)

    @apmwebdev I hope what I shared above is what you were looking for?

    Plugin Support Kel C. a11n

    (@kellymetal)

    Hi there @hitinder,

    Yes that is what we were looking for — thank you for sharing that status report!

    I took a look at your site and see what you are referring to. On the Cart page and Checkout pages, it is displaying the Subtotal line with the same value as the Total, even though the Subtotal should not include the Shipping (or tax if prices are set to display excluding tax in your settings). For example, on my test site with the core WooCommerce plugin and our default Storefront theme, we see the Subtotal not including Shipping while Total does:

    subtotal
    Link to image: https://d.pr/i/EekTbB

    While your subtotal is not doing that (as you explained):

    subtotal
    Link to image: https://d.pr/i/heX0TP

    I don’t see anything that stands out when checking the browser console for errors or code for your site.

    Most often, these types of strange display issues are caused by conflicts with code in your theme (or sometimes another active plugin on the site). To check for conflicts, please temporarily switch your theme back to Storefront and disable all plugins except for WooCommerce, then check to see if the issue is fixed. If it is, then you can switch your theme back and reactivate plugins one-by-one until you find the one that is causing the issue.

    You can read about testing for conflicts in our documentation here:
    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Please let me know how that goes, or if you have any questions!

    con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Woocommerc subtotal is incorrect’ is closed to new replies.