• Resolved SYPOMark

    (@sypomark)


    Hello there,

    I hope that you can help. This might be quite specific, or it may apply to lots of WooCommerce sites, I don’t know.

    My client’s site uses WP Configurator to generate the majority of her products. The plugin functions to allow a customer to configurate their product before purchase. An admin user can set prices to the options chosen.

    The problem that is being experienced is that the mini-cart does not include these extra costs when displaying a product’s price. However, the basket, the checkout and the product page all display the correct full price, including the optional extras.

    I have consulted WP Configurator’s developers. They say that it is a problem with WooCommerce, and they have no control over how mini-cart calculates its prices.

    Comparing the code for the price calculation in mini-cart.php and cart.php I can see that they both use

    apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );

    to calculate the price of a product. Yet, the mini-cart gets it wrong.

    Is there anything I can do to amend this error?

    With kind regards,

    Mark

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @sypomark,

    I see what you mean- the regular price seems to be displayed in the mini cart, regardless of the options that have been selected (at least in my tests).

    Can you share the site’s System Status Report so I can take a look?

    Thread Starter SYPOMark

    (@sypomark)

    Hi @shaunkuschel,

    Thanks for coming back to me. Here’s the report you asked for. I hope it’s useful:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://dclos.wd9.uk
    Site address (URL): https://dclos.wd9.uk
    WC Version: 5.1.0
    REST API Version: ? 5.1.0
    WC Blocks Version: ? 4.4.3
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 2.0.2
    Log Directory Writable: ?
    WP Version: 5.7
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.16
    PHP Post Max Size: 128 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 2500
    cURL Version: 7.65.0
    OpenSSL/1.0.2k-fips
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.2.33-MariaDB-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.1.0
    WC Database Prefix: wp_
    Total Database Size: 25.50MB
    Database Data Size: 21.69MB
    Database Index Size: 3.81MB
    wp_woocommerce_sessions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_csp3_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 3.08MB + Index: 0.08MB + Engine InnoDB
    wp_pimwick_gift_card: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_pimwick_gift_card_activity: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_postmeta: Data: 7.52MB + Index: 0.58MB + Engine InnoDB
    wp_posts: Data: 1.52MB + Index: 0.53MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wdp_orders: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wdp_order_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wdp_rules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 1.28MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 1.52MB + Index: 0.58MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    amz_configurator: 11
    attachment: 1831
    awdp_pt_rules: 1
    gift_card: 2
    giftcard: 4
    mc4wp-form: 1
    nav_menu_item: 6
    oembed_cache: 3
    page: 15
    post: 2
    product: 14
    product_variation: 4
    revision: 2
    sa_slider: 2
    seedprod: 1
    shop_coupon: 1
    shop_order: 26
    shop_order_refund: 1
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (21) ###
    
    Advanced Database Cleaner: by Younes JFR. – 3.0.3
    Advanced Dynamic Pricing for WooCommerce: by AlgolPlus – 3.2.2
    Auto Image Attributes From Filename With Bulk Updater: by Arun Basil Lal – 1.6
    Contact Form 7: by Takayuki Miyoshi – 5.4
    Duplicate Page: by mndpsingh287 – 4.4
    FV Top Level Categories: by Foliovision – 1.9.1
    Theme Customisations: by WooThemes – 1.0.0
    Gift Up!: by Gift Up! – 2.9.1
    Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 1.10.7
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.3
    WP Configurator for WooCommerce: by Luminesthemes – 1.4.6.3
    Shoppable Social Media Galleries by SNPT: by Snapppt – 1.1.9
    Slide Anything PRO - Modal Popups for Slide Anything: by Simon Edge – 2.0.1
    Slide Anything - Responsive Content / HTML Slider and Carousel: by Simon Edge – 2.3.34
    Premmerce Permalink Manager for WooCommerce: by premmerce – 2.3.1
    WooCommerce Stripe Gateway: by WooCommerce – 5.0.0
    WooCommerce: by Automattic – 5.1.0
    Wordfence Security: by Wordfence – 7.5.2
    Yoast SEO: by Team Yoast – 16.1
    ReCaptcha v2 for Contact Form 7: by IQComputing – 1.3.3
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.8.5
    
    ### Inactive Plugins (3) ###
    
    Cookiebot | GDPR/CCPA Compliant Cookie Consent and Control: by Cybot A/S – 3.10.0
    Klarna Order Management for WooCommerce: by klarna
    krokedil – 1.6.6
    
    Klarna Payments for WooCommerce: by krokedil
    klarna
    automattic – 2.4.3
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    gift-card (gift-card)
    grouped (grouped)
    pw gift card (pw-gift-card)
    simple (simple)
    variable (variable)
    wgm_gift_card (wgm_gift_card)
    
    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: #6 - /shop/
    Basket: #7 - /basket/
    Checkout: #8 - /checkout/
    My account: #9 - /my-account/
    Terms and conditions: #1482 - /terms-and-conditions/
    
    ### Theme ###
    
    Name: Galleria
    Version: 2.2.18
    Author URL: https://woocommerce.com
    Child Theme: ?
    Parent Theme Name: Storefront
    Parent Theme Version: 3.5.1
    Parent Theme Author URL: https://woocommerce.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 9
    Oldest: 2021-04-05 11:05:54 +0100
    Newest: 2021-04-06 13:19:03 +0100
    
    ### Status report information ###
    
    Generated at: 2021-04-08 10:37:36 +01:00
    

    Let me know if you need anything else.

    With kind regards,

    Mark

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey Mark,

    Sorry for the delay getting back to you about this. After looking over the Status Report and doing a few more tests on my end, my suspicion is that the problem may actually be related to the Advanced Dynamic Pricing for WooCommerce: by AlgolPlus – 3.2.2 plugin. The free version seems to have fewer options compared to the “Pro” version- which seems to include ‘dynamic front-end’ features. If that plugin’s features are being used for the price calculations on the site, I’d suggest trying to confirm that with the developers on their support forum.

    If that doesn’t explain what is happening, let me know!

    Thread Starter SYPOMark

    (@sypomark)

    Hi Shaun,

    Apologies for the delay in replying.

    I have just deactivated the Advanced Dynamic Pricing plugin on the site and the price displayed in the minicart is unaffected.

    However, with this plugin reactivated, the pricing ends up inaccurate. This change is immediate, following a page refresh.

    Thank you for your help.

    I will get on to their developers now.

    With kind regards,

    Mark

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mini Cart displaying inaccurate prices’ is closed to new replies.