-
Posted in : Efor
-
good evening
demo website:ipsychologos.eu
with demo data.I noticed that when I add a product from the list, first the cart icon in the header changes and the number one appears.
when I subsequently remove the product or if I add another different product or change the quantities of the same one, the number next to the cart does not change unless the page is refreshed.
in the settings on woocommerce I have enabled the button for AJAX function (without refreshing the page) in the add to cart buttons in the product list.Hi,
If there is any cache plug in here, it may be interfering. Also, some browsers are turned off against auto-refresh. So you can try different browsers.
ThanksI have a problem with the shopping cart icon, when I’m on the checkout page and I try to delete the product using the shopping cart clicking on the X button, I see the product deleted but I must refresh the checkout page to update the shopping cart icon.
Same problem on Safari, Chrome, Edge, Mozilla
No cache pluginHi, It sounds like you’re experiencing a JavaScript/AJAX issue where the cart icon isn’t updating automatically after product removal on the checkout page. Here’s how to troubleshoot and fix this:
Temporarily disable other plugins (except WooCommerce and Tutor LMS) to test if the issue persists.
Enqueue WooCommerce Cart Fragments
Add this to your theme’s functions.php:add_action('wp_enqueue_scripts', 'ensure_wc_cart_fragments'); function ensure_wc_cart_fragments() { if (function_exists('is_checkout') && is_checkout()) { wp_enqueue_script('wc-cart-fragments'); } }Thanks
I did what you suggested so far.
I updated and deactivated the plugins but no change in the behavior of removing the product (all browsers and no caching plugins).
WooCommerce > Settings > Products > AJAX is enabled
Cart page is correctly set in WooCommerce > Settings > Advanced > Page Setup.I also notice that in your demo site the removal works like this (Not Updating Quantity Issue) and the shopping cart is not updated.
Is your theme fully compatible with WooCommerce?
for example:
https://themes.pixelwars.org/efor/demo-07/cart/Hi,
The theme is fully compatible with Woocommerce. I am forwarding the problem you mentioned to the developer for detailed examination. You will be provided with feedback on this issue.
ThanksHi,
Thank you again for your detailed feedback and for testing the suggestions.
First, please rest assured:
Yes, our theme is fully compatible with the latest version of WooCommerce.
We follow WooCommerce’s coding standards and hooks, and do not override the core cart or checkout behavior unless strictly necessary.What you’re experiencing (cart icon not updating immediately on the checkout page after product removal) is not a bug in our theme — it’s a known limitation of WooCommerce’s default behavior.
On the checkout page, WooCommerce intentionally disables the live cart updates (wc-cart-fragments) to avoid distractions or conflicts with sensitive operations like payment processing.That’s why even in our official demo, you may see the same behavior — because we don’t modify WooCommerce defaults. Most professional themes keep this behavior untouched for stability and compliance.
If real-time updates on checkout are critical for your use case, we’ve already shared a code snippet that re-enables cart fragments on checkout — which should handle the cart icon updates. If that still doesn’t reflect changes, there might be a conflict or additional customization needed in your specific setup, and we’d be happy to investigate further.
Please let us know if you’d like us to take a closer look at your live site to help.
Thanks again for choosing our theme and sharing your observations — it helps us make the experience even better for everyone.
Best regards,
Mehmet
You must be logged in and have valid license to reply to this topic.