• Resolved dsvidan2010

    (@dsvidan2010)


    Hello,

    I am having an issue that seems to be a caching issue where when I add something to my woocommerce cart, I leave the cart and go to another page on my site, and come back to the cart, it shows there is nothing in the cart in the cart widget in the corner. However, if you click into the cart, you can see the contents of the cart and it indeed does contain products.

    If I come back later on, maybe 1 hour or more, it seems like the cart widget correctly reflects what is in the cart. This is very odd.

    Why would the cart widget initially show there is nothing in the cart when I add something, leave to another page and come back right away?

    If I add something to the cart and do not leave the shop page, the cart widget correctly reflects what is in the cart until I leave to another page on my site and come back.

    Like I said, if I come back later on, its almost like it reconciles itself and the cart widget reflects what is actually in the cart.

    Lets said I came back after an hour and by cart shows a shirt for $25 in the cart, I can leave to another page and come back and it still shows that amount. However if I add another $25 shirt to make it $50 in the cart, if I leave to another page and come back, it shows $25 and not $50. The cart widget seems to erase only the newly added amount.

    Using Thrive Themes for theme builder, and they attempted to help by excluding the Product and Shop pages, however, it appears that the Shop and Product pages are still being cached despite the exclusion.

    I hope this makes sense! Happy to talk more.

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @dsvidan2010

    Thank you for reaching out and I am happy to assist you with this.
    Can you please share if you excluded the cart and shop page by adding them to Performance>Page Cache>Advanced>Never Cache following pages field:
    /shop/
    /cart/
    Also, Under WooCommerce > Settings > Products > General enable the ajax add to cart option if disabled.
    Make sure to disable the Expires header and cache-control header in Performance>Browser Cache>HTML&XML, save all settings, and purge the cache.
    Let me know if this helps!
    Thanks!

    Thread Starter dsvidan2010

    (@dsvidan2010)

    Hi Marko,

    First, thank you for all your work contributing to this forum! I believe I have tried all those settings, but will try them again now and get back to you. I followed Woocommerce’s recommendations for caching plugins where they mention excluding the cart, my account, and checkout pages along with some cookies which I added to the rejected cookies section.

    If I disable page cache in W3TC everything works fine so I am certain the issue is W3TC.

    WP Fastest Cache works out the box, but I prefer W3TC if I can get it to work for Woocommerce.

    I will reply shortly probably by 10am CST.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce Cart widget not updating properly’ is closed to new replies.