Cart and Fav badges arent consistent after navingating to another page

This topic has 6 replies, 3 voices, and was last updated 1 week, 5 days ago ago by Tony Rodriguez

  • Avatar: islam
    islam
    Participant
    August 14, 2026 at 21:03

    Hi,

    Kindly check the attached video, it is showing inconsistent cart and favorite behavior after adding items to them in guest mode.

    https://fex.net/s/5v6x9tz

    Please note that I want to apply the fix to production later therefore I’d need either a patch of code to fix the issue.

    Best Regards,
    Islam

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 15, 2026 at 07:54

    Hello @islam,

    We have noticed that you have the Caching plugin active on your website, which might be causing the issue.

    You can add the following custom PHP snippet to your child theme’s functions.php file for the correct operation of the wishlist/compare AJAX with the caching plugin:

    add_filter('xstore_wishlist_mini_content_ajax', '__return_true');
    add_filter('xstore_compare_mini_content_ajax', '__return_true');

    Otherwise, we kindly request that you temporarily disable the caching plugin and then check if the issue persists. If the problem is indeed related to your plugin, please refer to the cookies documentation that you can include to exclude in your cache plugin: https://www.8theme.com/documentation/xstore/support/cookies/

    Best Regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: islam
    islam
    Participant
    August 15, 2026 at 16:52

    Hi Jack,
    Thanks for your reply and support, yes you’re right after disabling caching plugin it worked fine, i’ll try your fix while caching is on, what code should i add for shopping cart as well?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 17, 2026 at 06:20

    Hello @islam,

    We have provided a solution specifically for our built-in features, while the shopping cart fragments are primarily managed by the WooCommerce plugin. Are you experiencing any issues with the cart badges as well? We kindly ask you to review the documentation of your caching plugin or consider submitting a topic on their support forum for assistance with the correct configuration on your website. This will help ensure that the appropriate cookies are excluded from their plugin caching.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: islam
    islam
    Participant
    September 28, 2026 at 06:40

    Thanks for the support! My topic “Cart and Fav badges arent consistent after navingating to another page” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    September 28, 2026 at 06:40

    Dear islam,

    Thanks for being part of our WordPress & WooCommerce community!

    We’re happy we could assist you. Your feedback truly matters — it helps us make XStore better, faster, and more reliable with every release.

    Together, we’re shaping a better WooCommerce experience for everyone.

    Topic closed.
    The 8Theme Team

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

The issue related to '‘Cart and Fav badges arent consistent after navingating to another page’' has been successfully resolved, and the topic is now closed for further responses

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