Wishlist Counter Not Updating Automatically Without Interaction

1 reply2 participantsUpdated by Jack Richardson

  • Avatar: Aakash
    Aakash
    Participant

    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

    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

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register