• Resolved rashmips

    (@rashmips)


    Hello,

    Hope you are fine.
    We are using your plugin, and we are facing an issue.
    We see that after adding a product to our cart. The cart shows the updated total and total items in the cart for few seconds.
    And as the page finish loading, the cart shows 0 items with total of Rs.0.
    Please help and advise.

    Thank you,
    Best Regards.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @rashmips,

    Sorry for the late reply! We were away for the Christmas vacations. By the way, Happy New Year!

    Back to your question, I tried to access to your site, but it seems that it’s no longer available, right? Anyway, it seems to me that this issue could be related with your site cache. We’re aware of some server caching plugins that could be generating this kind of issues. If you have installed some cache plugin, could you perform a fast test disabling it in a staging site, and try again?

    Thread Starter rashmips

    (@rashmips)

    Hello Yordan,

    Hope you had a great holiday and new year ??

    Thank you for your reply.

    We currently have WP Rocket installed on our website. We have tried to uninstall the cache plugin but still having the same issue. We have tried similarly to disable all plugins and theme also but still having the same issue.

    Can you please check if we send credentials ? How can we send credentials so that the topic is not public ? Please advise.

    Thank you,
    Rashmika.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Could you please let me know which hosting provider are you using?

    Plugin Contributor Yordan Soares

    (@yordansoares)

    On the other hand, could you please create a staging site in the same hosting provider you’re using, and enable the frontend live view in order to see what’s happening in this side? (I don’t need backend access).

    Thread Starter rashmips

    (@rashmips)

    Hello Yordan,

    The website is the following : https://omarjeedev.mips.mu/. It is a staging website.

    The hosting provider is our own cloud based provider.

    Please advise and help.

    Thank you,
    Rashmika.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Could you please add the WooCommerce Cart widget, under Appearance > Widget, in any widget area, to check how it behaves?

    Thread Starter rashmips

    (@rashmips)

    Hello,

    We have added the cart widget. After adding the product in the cart, it still shows no products in the widget.

    Moreover, we noticed that the issue appears only for non-logged users. When products are added to cart, the count still shows 0 and when we click on the cart icon it is redirected to the shop page.

    However, When a user is connected and add products to the cart, the cart is working perfectly.

    Can you please advise me?

    Kind regards.

    Plugin Contributor Ewout

    (@pomegranate)

    Unfortunately, the fact that the core WooCommerce Cart widget exhibits the same behavior tells us that the issue is not with WP Menu Cart…
    Both me and @yordansoares did several tests on your site and the behavior was quite inconsistent accross the board. Overall, it seems that the first time you open the page in a new tab (clean session), the WooCommerce AJAX system (“fragments”) does not work – it is stuck on the empty cart and is never refreshed. When we then opened the site in a new tab in the same session (after having added something to the cart in the original tab), everything worked perfectly: WooCommerce AJAX fragments were updated everytime something changed in the cart.

    We were not able to find the root cause of this. There could be a server side issue with sessions, or an issue with cookies on the client side, but what exactly is unclear and like I said: the fact that this happens with the cart widget demonstrates it’s unrelated to WP Menu Cart.
    My advice would be to test 2 things:

    1. Try with all plugins except WooCommerce disabled (you could enabled WP Menu Cart too if you like), make sure to start your test in a clean session (incognito)
    2. Try in a different server (not your own) to see if it’s perhaps server related

    Hope that helps – let us know your findings!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cart updated but still shows 0 upon page load’ is closed to new replies.