Cart issue with caching plugin – mini cart not fully Ajaxified

This topic has 3 replies, 2 voices, and was last updated 1 years, 7 months ago ago by Alessandro

  • Avatar: Alessandro
    Alessandro
    Participant
    September 17, 2022 at 15:05

    Hello, hope everything is ok for you all!

    I’ve an issue with the cart using wp-rocket plugin, I wrote them:

    as you can see in the following video when you load the page a 10€ appears in the cart even if nothing was added: https://share.vidyard.com/watch/3oRPnuJHkNcd3aXDzg9VMR

    And they have replied me this:

    This is happening because the mini cart is not fully Ajaxified.
    So, when you add a product to the cart, and visit a noncached page the value is hardcoded in the HTML of cached page.
    When a visitor loads the page, the value displays for a moment and then is updated via Ajax.
    This does display the wrong value for a second because is hardcoded in the HTML.
    This is a problem with the theme/minicart module, is not fully axajified. You will need to contact the theme developer about this.
    You can also disable the cache after a product has been added to the cart, by excluding the cookie cart from the case. But I don’t think is the best solution here.

    Is there a possibility to hav that mini cart fully axajified in a future update?

    Thanksin advance for your time!
    Alessandro

    2 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 19, 2022 at 09:29

    Hello,

    Theme Options > Speed optimization > Always Load Wc-Cart-Fragments. Clear cache and check then.

    Regards

    Avatar: Alessandro
    Alessandro
    Participant
    September 19, 2022 at 13:58

    Hello Rose, problem solved with that option enabled.. thank you as always 🙂

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

The issue related to '‘Cart issue with caching plugin – mini cart not fully Ajaxified’' 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.