Cart and Fav badges arent consistent after navingating to another page

This topic has 4 replies, 2 voices, and was last updated 6 days, 20 hours ago ago by Jack Richardson

  • 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

    Content is visible for topic creator and
    support staff only.
    3 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

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