Async loading of off-canvas/dropdown cart incl. total price etc.

Solved5 replies3 participantsUpdated by Tony Rodriguez

  • Avatar: kikjou
    Martin
    Participant

    Hello,

    I see a real problem in the fact that like off-canvas/dropdown elements like cart or account are not loaded asynchronously. When using page caching, those elements are being cached together with the page, thus often display outdated or wrong content.

    I had to switch off any of them, now only relying on the simple icon link in the header, without even a hint that there are already products in the cart. That diminishes the customer experience significantly!

    What solution can you offer me?

    Best regards
    Martin

    Please, contact administrator
    for this information.

    5 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Martin,

    Could you please describe the issues you are experiencing when caching this type of content? Have you tried excluding specific classes (such as .etheme-elementor-off-canvas__wrapper) from caching so that the content within such wrappers is not cached? It would be greatly appreciated if you could provide us with a video demonstrating the issue.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: kikjou
    Martin
    Participant

    Hello Jack,

    at long last here the requested video about the problem with the sidebar-cart:
    https://mega.nz/file/sA9VkILQ#bYi34ImrlSqC1nMZBJmh-95vaIxF6EGG4tM_LC4qmmY

    As you can see, added-to-cart products are displayed in the sidebar on a product page, but not on the homepage.

    No, I have not yet excluded specific wrappers from caching. I assumed that such content would be loaded asychronously anyway.

    Best regards
    Martin

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Martin,

    We have noticed that your website is using a caching system. In this case, it is important to ensure that the cache settings are properly configured, including the necessary exclusions for WooCommerce AJAX fragments and similar elements, to maintain the correct functionality of your WooCommerce-based website.

    We kindly recommend reviewing the documentation of your caching plugin. If server-side caching is enabled by your hosting provider, please contact them for assistance with the required configuration.

    For reference, you may consult the WooCommerce documentation, which provides details on the fields that should be excluded to ensure the proper operation of the mini cart:
    https://developer.woocommerce.com/docs/best-practices/performance/configuring-caching-plugins/

    Additionally, the following articles from the WP Rocket documentation may be helpful:
    https://docs.wp-rocket.me/article/1436-mini-cart-cached-already-has-product-in-it
    https://docs.wp-rocket.me/article/27-using-wp-rocket-on-your-ecommerce-site#cart-widgets

    As a temporary solution, you can test the website with caching disabled. If the off-canvas content is displayed correctly, please review your website’s caching configuration accordingly.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: kikjou
    Martin
    Participant

    Thanks for the support! My topic “Async loading of off-canvas/dropdown cart incl. total price etc.” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Dear Martin,

    We really appreciate your time and engagement within the WordPress & WooCommerce community

    Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

The issue related to '‘Async loading of off-canvas/dropdown cart incl. total price etc.’' has been successfully resolved, and the topic is now closed for further responses