We are facing a mobile-only WooCommerce cart/mini-cart issue on our website

This topic has 8 replies, 2 voices, and was last updated 1 hour, 43 minutes ago ago by Plethora

  • Avatar: Plethora
    Plethora
    Participant
    May 19, 2026 at 14:14

    On mobile, products are not always being added to the actual WooCommerce cart correctly, or the cart state becomes inconsistent.

    Sometimes after adding a product:
    1. The item appears in the XStore mini-cart / mobile header cart.
    2. But when opening the real cart page or refreshing, the item is missing.
    3. In other cases, the mini-cart/header count becomes stale and does not match the real cart.
    4. After removing an item from the cart, the real cart updates, but the mobile header cart count can still show the previous quantity.

    Desktop behavior:
    Desktop seems to work correctly. The issue mainly happens on mobile.

    Content is visible for topic creator and
    support staff only.
    7 Answers
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    May 19, 2026 at 16:17

    Hello, Plethora,

    Thank you for the detailed investigation and technical information.

    Based on the behavior and the debugging data you provided, the issue does not currently look like a failed WooCommerce add-to-cart request itself, because the AJAX request returns status 200 together with valid cart_hash and fragments.

    The main issue appears to be related to WooCommerce cart fragments not being initialized or refreshed correctly in the affected mobile context.

    A very important indicator is:
    wc_cart_fragments_params is undefined

    Normally, WooCommerce uses the wc-cart-fragments script to keep the mini-cart/header cart synchronized with the real WooCommerce session cart through AJAX fragment refresh requests (get_refreshed_fragments).

    At the moment, it seems that on mobile devices the XStore mobile mini-cart/header cart can temporarily display stale fragment data instead of synchronizing with the real WooCommerce cart session.

    This would explain situations where:
    – the product appears in the mobile header mini-cart,
    – but disappears after refresh/opening the real cart,
    – or the cart quantity in the mobile header remains outdated after removing items.

    Since desktop works correctly, the issue is likely related to:
    – mobile-specific script loading,
    – cart fragment initialization,
    – JS optimization/delay/defer,
    – or caching interaction affecting WooCommerce fragments on mobile.

    To properly investigate this further, we need direct access to the environment to:
    – inspect script loading order,
    – verify whether wc-cart-fragments is being dequeued or delayed,
    – test WooCommerce fragment refresh requests,
    – check mobile-specific XStore header/cart behavior,
    – and inspect possible optimization or cache conflicts directly.

    Please provide:
    – WordPress admin access
    – FTP/SFTP access

    This will allow us to perform deeper debugging and identify exactly why the WooCommerce cart fragments are not synchronizing correctly in the mobile cart/header context.

    Best Regards,
    8Theme’s Team

    Avatar: Plethora
    Plethora
    Participant
    May 20, 2026 at 07:20

    Please find in PVT. Looking forward to your support 🙂

    Content is visible for topic creator and
    support staff only.
    Avatar: Plethora
    Plethora
    Participant
    May 20, 2026 at 14:11

    Also Chrome DevTools shows duplicate form field IDs

    Content is visible for topic creator and
    support staff only.
    Avatar: Plethora
    Plethora
    Participant
    May 20, 2026 at 14:37

    We have started the promotion just now. Please do not log in unless I confirm. I appreciate your understanding.

    Avatar: Plethora
    Plethora
    Participant
    May 22, 2026 at 07:20

    Hi, Can you please proceed with the same login details?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    May 22, 2026 at 16:29

    Hello, Plethora,
    Yes, we can log in. Please let us know if we may update your WordPress to the latest version.

    Best regards,
    8Theme Team

    Avatar: Plethora
    Plethora
    Participant
    May 22, 2026 at 17:12

    Most of the plugins haven’t provided an update for compatibility with the new WordPress until now.

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.