Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3999868
Issue with stock display not updating inside grouped products (WPC Grouped Product + WP Rocket)
Open

Comments

  •  2
    Nicolas started the conversation

    Hello WPClever team,

    I am using your plugin WPC Grouped Product for WooCommerce, and I’m encountering an issue with how stock quantities are displayed inside grouped products when combined with WP Rocket.

    Let me explain the situation:

    - I have a hidden simple product that is part of a grouped product.

    - When I update the stock of the individual product (manually or after a purchase), the stock is updated correctly in the backend.

    - However, on the frontend — inside the grouped product page — the displayed stock or availability status remains outdated unless I manually purge the cache.

    I reached out to WP Rocket support and they confirmed the issue:  

    the grouped product page renders the individual products and their stock statically in HTML, and that output gets cached. Since the stock is not loaded via AJAX, the cached page keeps showing the outdated value.

    Here is a video I recorded to illustrate the issue:  

    https://app.screencast.com/cSxZFjyDqy2x3

    ---

    My questions:

    1. Is there a way to make the stock of individual products update dynamically (via AJAX) inside grouped products?

    2. Do you have any recommended integration or snippet to make your plugin work better with WP Rocket or other page caching systems?

    3. If not, is there any available hook I could use to customize the way grouped product content is rendered (e.g., to replace it with a dynamic call)?

    I really like your plugin and would love to keep using it with WP Rocket. Thanks in advance for your help or guidance!

    Best regards,