Home Forums WoodMart support forum Wishlist not updating on first visit and only appears after reload

Wishlist not updating on first visit and only appears after reload

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #665502

    tomass
    Participant

    Hey,
    We’re using the Woodmart theme with WooCommerce and no user login system. The wishlist feature works, but only after reloading the wishlist page.
    Here’s the exact flow:
    1.User adds a product to wishlist (in this case it can be done on homepage) .
    2.They visit the wishlist page (/wishlist) immediately after.
    3.The wishlist displays: “This wishlist is empty.”
    4.After refreshing the page, the wishlist loads the product correctly.

    We initially suspected a caching issue. We use LiteSpeed Cache, and have excluded the wishlist page from caching. We also tested with CookieYes disabled — no change. This issue also occurs on different site, but on that site there is no caching plugin activated.

    It seems Woodmart isn’t detecting or rendering the updated wishlist on initial page load and wishlist products don’t appear unless the user reloads the page.

    Could you confirm if this is a known issue? And is there a recommended way to force the wishlist to re-render or refresh when the user first visits the wishlist page?

    #665570

    Artem Temos
    Keymaster

    Hello,

    We checked your video and can clearly see that it is related to some kind of cache. Most likely a browser cache for this page. But when we visit your website, we don’t see the problem. Here is a video https://gyazo.com/f1b51249acaa81a977f67770ec955826

    Kind Regards

    #665603

    tomass
    Participant

    Hey again,

    Thanks for your help so far. We’ve continued investigating this issue and can now confirm the following: the issue does not occur on Firefox or Safari, but it does occur consistently on Google Chrome (both regular and incognito) and Microsoft Edge.
    When testing locally in Chrome the issue does not appear. We’ve now tested multiple sites and they all show the exact same issue in Chrome and Edge.

    From what we can see, this probably isn’t a a server or browser cache issue, but rather a JavaScript timing problem that happens in Chromium browsers.

    And is there a recommended or officially supported way to fix or work around this issue for Chrome and Edge?

    #665726

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to fix this

    add_filter('wp_speculation_rules_href_exclude_paths', function ($exclude_paths) {
        $exclude_paths[] = '/wishlist/';
        return $exclude_paths;
    });

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)