Wishlist Counter Not Updating Automatically Without Interaction

This topic has 2 replies, 2 voices, and was last updated 3 months, 1 weeks ago ago by Jack Richardson

  • Avatar: Aakash
    Aakash
    Participant
    August 25, 2025 at 16:35

    Hello XStore Team,

    I am experiencing an issue with the wishlist counter on my site.
    • When I add an item to the cart, the cart counter updates automatically after ~1–1.5 seconds, without requiring any user interaction. This is working fine.
    • However, when I add an item to the wishlist, the wishlist counter (shown in the footer menu) only updates after some interaction with the page (hover, click, scroll, etc.).
    • If I go to the wishlist page, the items are displayed correctly, but the counter in the header/footer does not update until I interact with the page.

    What I have already tried:
    1. In LiteSpeed Cache, I excluded wc-ajax and et_ajax requests from cache.
    2. I enabled “Always Load wc-cart-fragments” in XStore → Speed Optimization.
    3. Cleared all caches (LiteSpeed + browser + XStore cache).
    4. Verified that the cart counter updates properly, but wishlist counter does not.

    Current Setup:
    • Theme: XStore (version 9.5.3)
    • XStore Core: (version 5.5.3)
    • WooCommerce: [version 10.1.0]
    • WordPress: [version 6.8.2]
    • Caching plugin: LiteSpeed Cache (Version 7.3.0.1)
    • Wishlist implementation: Using Xstore built-in Wishlist with [xstore_wishlist_page] shortcode (not YITH).

    The issue:
    • Cart works fine (updates automatically after 1–1.5 sec).
    • Wishlist counter only updates after interaction (hover/click/scroll).

    Could you please help me with a way to make the wishlist counter update automatically on page load, like the cart counter does, even when LiteSpeed cache is active?

    Thank you in advance for your support!

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 26, 2025 at 07:04

    Hello @Aakash,

    You may add the following code snippet to your child theme’s functions.php file:

    add_filter('xstore_wishlist_mini_content_ajax', '__return_true');

    If you require further assistance, kindly provide us with a video demonstrating the issue, along with temporary WordPress admin access to your website so we can investigate the matter more effectively.

    Best regards,
    The 8Theme Team

  • Viewing 2 results - 1 through 2 (of 2 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.