Cart resets to zero on homepage reload - by Enmanuel Rostran

This topic has 8 replies, 2 voices, and was last updated 2 weeks ago ago by Jack Richardson

  • Avatar: Enmanuel_Rostran
    Enmanuel Rostran
    Participant
    June 17, 2025 at 15:30

    Hello,

    I have now enabled the “Always Load Cart Fragments” option as suggested under XStore > Theme Options > Speed Optimization, but unfortunately, the issue still persists — especially on mobile devices.

    I also contacted the WP Rocket support team, and here is a summary of their findings:

    They explained that the XStore Core plugin, which renders the mini cart, relies on PHP to update the cart count. This behavior is fundamentally incompatible with page caching, since WP Rocket (like most caching plugins) generates static HTML output, bypassing PHP/MySQL processes. As a result, the cart count will not update unless the cache is cleared and rebuilt.

    They further stated:

    ⚠️ In short, any dynamic content that needs to update frequently — or after each page load — must rely entirely on AJAX/JavaScript to be compatible with page caching.

    To confirm that page caching is the cause, they installed their helper plugin that disables it, but the problem persists on the mobile version.

    Can you please let me know if XStore offers a cart widget or setting that works fully via AJAX to maintain compatibility with page caching plugins like WP Rocket?

    This issue is significantly affecting our mobile user experience and cart functionality, so any help you can provide will be greatly appreciated.

    Best regards,

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    7 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 18, 2025 at 06:28

    Dear @Enmanuel Rostran,

    We hope this message finds you well.

    We would like to inform you that we are currently working on a global update that includes numerous optimization improvements, particularly for AJAX requests. If you are interested, we would be happy to provide you with access to our beta version for testing purposes.

    Please note that, as this is a beta release, it may still contain some issues. Therefore, we strongly recommend testing it on a staging website rather than a live environment.

    Once you have completed your testing, we would appreciate your feedback. This will also allow us to verify whether the issue you previously reported has been addressed in the update. Our development team has implemented a wide range of enhancements, so it is possible that the issue has already been resolved. If not, we will investigate it further.

    We look forward to hearing from you.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: Enmanuel_Rostran
    Enmanuel Rostran
    Participant
    June 18, 2025 at 14:44

    Dear Jack,

    Thank you for your response.

    Yes, I’m interested in testing the beta version to check if the issue with the cart behavior has been resolved with the new AJAX improvements. I will set up a staging environment for testing purposes and will share my feedback once the process is complete.

    In the meantime, could you please advise on the best temporary solution to apply while I’m testing?

    Would it be better to:

    Remove or hide the cart counter temporarily? If so, could you provide the steps ?
    OR

    Disable WP Rocket for now, even if temporarily, to avoid the caching conflict?

    Any guidance on this would be greatly appreciated, as the issue is currently affecting the user experience and sales on our store.

    Best regards,
    Enmanuel Rostran

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 19, 2025 at 09:43

    Dear @Enmanuel Rostran,

    We hope this message finds you well.

    Once you have set up your staging environment, please let us know. We will then provide you with a ZIP file containing the beta version, which includes our latest improvements.

    For testing purposes, we recommend disabling the WP Rocket plugin on your staging website.

    Best regards,
    The 8Theme Team

    Avatar: Enmanuel_Rostran
    Enmanuel Rostran
    Participant
    June 20, 2025 at 20:59

    I have already set up the test environment

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 21, 2025 at 08:01

    Dear @Enmanuel Rostran,

    We hope this message finds you well.

    Please be informed that our testing archives are available for download via the URL provided in the private area.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Enmanuel_Rostran
    Enmanuel Rostran
    Participant
    June 23, 2025 at 19:27

    Dear Xstore Support Team,

    Thank you for providing access to the beta version of the theme and plugin to test the previous issues. However, I would like to report that the main problem still persists.

    On mobile view, when adding a product to the cart, the quantity does not update correctly. Even though the item is added, the cart still shows a quantity of zero upon checking, as if nothing was added.

    This issue significantly affects the mobile shopping experience. I would like to know if there is any temporary workaround available while a permanent fix is being worked on. I’m open to continuing testing if needed.

    Additionally, I’m considering whether this issue might be related to the optimization plugin WP Rocket. If so, I’m evaluating the possibility of canceling my subscription and switching to an alternative such as WP Fastest Cache Premium or WPMU DEV Hummingbird Pro, depending on what works best with Xstore.

    That’s why I would like to know directly from your team: which optimization plugin do you recommend that works best with your theme and won’t cause this same issue? I want to avoid purchasing and canceling plugins unnecessarily if the problem lies with plugin compatibility.

    Thank you for your prompt attention. I look forward to your guidance and any recommendations you may have regarding this situation.

    Best regards,
    Enmanuel

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 24, 2025 at 06:25

    Dear @Enmanuel Rostran,

    We hope this message finds you well.

    We would like to suggest considering the migration of your current header content to the header built with Elementor. This option offers enhanced flexibility, a wider range of widgets, and additional configuration settings to better suit your needs.

    Furthermore, we have recently released an update that includes optimizations for compatibility with the WP Rocket caching plugin, which may further improve your website’s performance.

    For your convenience, we invite you to review our documentation and video tutorials on the Elementor Header Builder via the following link:
    https://www.8theme.com/documentation/xstore/video-tutotials/xstore-header-builder-on-elementor/

    However, if you prefer to continue using your current header setup, we kindly ask that you update your theme and the XStore Core plugin to the latest version on your staging website. Additionally, please provide us with the correct FTP and wp-admin access credentials via private content so we can assist you further.

    Best regards,
    Jack Richardson
    The 8Theme Team

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

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.