• Resolved ricardoareal

    (@ricardoareal)


    Hi everyone,

    I’m trying to make a product configuration but I’m encountering a problem with the price of a grouped product.

    I have created 4 simple products:

    • Simple Product 1 – $10
    • Simple Product 2 – $20
    • Simple Product 3 – $10
    • Simple Product 4 – $20

    Then I created 2 grouped products:

    • Grouped Product 1 ( Simple Product 1 + Simple Product 2 ) – $10 – 20$
    • Grouped Product 2 ( Simple Product 3 + Simple Product 4 ) – $10 – 20$

    Lastly, I created another grouped product:

    • Global Grouped Product ( Grouped Product 1 + Grouped Product 2 ) – $10

    After creating the products, the prices are all correct, but if you change the price of Simple Product 1 from $10 to $5, the price of the Global Grouped Product remains at $10. It should have been changed to $5.

    I’ve been checking why this is happening and I’ve noticed that when I update the price of Simple Product 1. In the postmeta table of Grouped Product 1 the meta_key “_price” is not updated, consequently the Global Grouped Product when it does the get_price() of the children fetches this meta_key and I get the wrong price

    Initial Prices:

    After price change:

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey there, @ricardoareal! Thanks for contacting us. I’m happy to help you.

    Can you please share screenshots of how you set up the products so we can take a look?

    Furthermore, I’d like to understand your site properly. Please share with us the System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter ricardoareal

    (@ricardoareal)

    Hi,

    First of all thanks for your reply, I’ll leave the screenshots of the products here:

    • Simple Product 1 – I just put in a regular price
    • Simple Product 2 – I just put in a regular price
    • Grouped Product 1 – In the linked products I have inserted the products ( Simple Product 1 + Simple Product 2 )
    • Simple Product 3 – I just put in a regular price
    • Simple Product 4 – I just put in a regular price
    • Grouped Product 2 – In the linked products I have inserted the products ( Simple Product 3 + Simple Product 4 )
    • Main Grouped – In the linked products I have inserted the grouped products ( Grouped Product 1 + Grouped Product 2 )

    Here is the System Status Report

    `
    ### WordPress Environment ###
    
    WordPress address (URL): https://clean-wp.sunpics.online
    Site address (URL): https://clean-wp.sunpics.online
    WC Version: 8.5.2
    REST API Version: ? 8.5.2
    WC Blocks Version: ? 11.8.0-dev
    Action Scheduler Version: ? 3.7.1
    Log Directory Writable: ?
    WP Version: 6.4.3
    WP Multisite: –
    WP Memory Limit: 2 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: pt_PT
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Microsoft-IIS/10.0
    PHP Version: 8.1.5
    PHP Post Max Size: 2 GB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000000000
    cURL Version: 7.77.0
    OpenSSL/1.1.1n
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.33
    Max Upload Size: 2 GB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 8.5.2
    WC Database Prefix: wp_
    Total Database Size: 5.26MB
    Database Data Size: 3.57MB
    Database Index Size: 1.69MB
    wp_woocommerce_sessions: Data: 0.02MB + 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.02MB + 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.08MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 2.48MB + Index: 0.06MB + Engine InnoDB
    wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_posts: Data: 0.06MB + Index: 0.06MB + 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_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + 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_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_operational_data: 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_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + 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
    
    ### Post Type Counts ###
    
    attachment: 1
    page: 9
    post: 2
    product: 10
    revision: 2
    wp_global_styles: 1
    wp_navigation: 1
    wp_template: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (1) ###
    
    WooCommerce: by Automattic – 8.5.2
    
    ### Inactive Plugins (0) ###
    
    
    ### Settings ###
    
    API Enabled: –
    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 Woo.com: –
    Enforce Approved Product Download Directories: ?
    HPOS feature screen enabled: ?
    HPOS feature enabled: ?
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: –
    
    ### WC Pages ###
    
    Shop base: #7 - /loja/
    Cart: #8 - /carrinho/
    Checkout: #9 - /finalizar-compra/
    My account: #10 - /minha-conta/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Twenty Twenty-Four
    Version: 1.0
    Author URL: https://www.remarpro.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: ? Not declared
    
    ### Templates ###
    
    Overrides: –
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    product-variation-management
    product-virtual-downloadable
    product-external-affiliate
    product-grouped
    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: customize-store
    minified-js
    new-product-management-experience
    product-linked
    settings
    async-product-editor-category-field
    
    Daily Cron: ? Next scheduled: 2024-02-07 16:58:43 +00:00
    Options: ?
    Notes: 70
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 18
    Oldest: 2024-02-01 16:59:45 +0000
    Newest: 2024-02-07 09:15:22 +0000
    
    Failed: 1
    Oldest: 2024-02-01 17:01:00 +0000
    Newest: 2024-02-01 17:01:00 +0000
    
    Pending: 1
    Oldest: 2024-02-08 09:15:22 +0000
    Newest: 2024-02-08 09:15:22 +0000
    
    
    ### Status report information ###
    
    Generated at: 2024-02-07 09:41:24 +00:00
    `

    Thank you in advance

    • This reply was modified 1 year, 1 month ago by ricardoareal.
    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello ricardoareal,

    Thank you for your reply and the detailed explanation of the issue.

    I’ve followed the steps you provided and recreated your setup on my test site, and I’m observing the same behavior where the price of the Global Grouped Product does not update as expected when you change the price of Simple Product 1.

    https://snipboard.io/LTX1sP.jpg

    Before we delve into troubleshooting this further, I would like to understand your overall goal. Could you please clarify what you aim to accomplish by creating a Global Grouped Product composed of already grouped products?

    Understanding the structure you’re aiming for and how it will function in your store will help me address the issue more effectively.

    Additionally, it would be helpful if you could provide a screenshot of the Global Grouped product page as it appears on the front end. This visual can give me a better idea of your configuration and what you are trying to achieve with the product display.

    Once I have a clear understanding of your end goal, I can take the proper steps to guide you toward a solution for the pricing discrepancy.

    Looking forward to your response. ??

    Best regards.

    Thread Starter ricardoareal

    (@ricardoareal)

    Hi @doublezed2,

    The structure of the store is based on grouped products in order to reach a final product. In other words, it’s as if the grouped products were product categories until they reach a final product.

    Here’s a video so you can understand the workflow properly ( https://vimeo.com/914728573/b1e0b1c3c2 ).

    To explain the video, each of the products you’ll see is grouped until it reaches a final product, which is the last product that appears at the end of the video.

    If you need any more information or clarification of the workflow, please let me know.

    Thanks in advance

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello ricardoareal,

    Thank you for your reply and explanation.

    I understand you are trying to create composite products using the Grouped Products feature of WooCommerce.

    May I suggest looking into the Composite Products extension?
    This plugin has all the features that you are trying to achieve manually by using grouped products.

    Please let me know if you have any questions or concerns.
    I will be happy to assist you further. ??

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Grouped product isn’t pricing its children correctly’ is closed to new replies.