Can't empty shopping cart
-
Just installed the Woocommerce update for version 2.6.0.
Now my shopping cart won’t empty anymore. Hitting the X in the shopping cart doesn’t work.
See or try for exemple and ad to cart: https://www.beleef-smaak.nl/product/rundertajine-met-couscous-en-kikkererwten/
Please help. TY
-
Hey Edwin,
I checked this on your site and you’re correct it doesn’t empty. It’s likely something that’s blocking Ajax requests.
If you try removing the product with a refresh it works. This is what I tried:
https://www.beleef-smaak.nl/cart/?remove_item=439d77a509e5a130429582db315fd59b&_wpnonce=e9584c3bd5
That exact url won’t work for you unless you have the same item in the cart and update the nonce. The point is that the manual refresh works just the Ajax request doesn’t.
Do you have a plugin that might block ajax requests? A security plugin perhaps? Can you disable that and give it a test?
Hi Patrick,
Thx for responding. Have all in one wp security and tried it with disabling it. Still the same. Can’t find any other plugin or cause for blocking the Ajax request. What do do now?A lot of the My Account page templates changed with 2.6 and if your theme overrode any of those templates there could be issues. Can you go into your WordPress admin and under
WooCommerce -> System Status -> ToolsenableTemplate Debug Mode? And then test it yourself?It should hide any potential template issues which is usually how themes accidentally break WC.
If that works then there’s an issue with the templates in your theme and you’ll have to contact the theme author to get it fixed asap.
One other thing you can do is check in your
.htaccessfile with your FTP client. Some plugins write rules directly into the.htaccessfile so even if you disable them they are still affecting your site because the.htaccessfile is still being read & processed.Tried to enable Template debug mode. Still the same issue. Can’t empty the shopping cart.
Will look on to .htaccess file and let you know.Hey Edwin,
I think we found the issue. In some themes they add extra html. That can mess up the jQuery selector that removes the item from the cart.
We’ve logged this and will push it out with the first bug fix release. Unless there’s something critical this will go out in a week.
Until that release comes out can you please remove the following HTML which is likely coming from a cart template.
<i class="fa fa-times-circle"></i>As seen here: http://d.pr/i/1gnAV
You can replace it with a generic
Xjust typed in. I tested it myself using the Chrome inspector and it seems to work. You just need to find where that extra icon html is coming from and remove it temporarily.You should also notify the theme developer so he can alert other users who bought this theme.
I hope that helps! 🙂
Hi Patrick,
Great! I found the HTML in my theme in the themes woocommerce.php and replaced it with a generic x typed in. It worked. Thanks.
Looking forward for the first bug fix release for structural fix for this issue. For now you helped me a lot. And i will inform the developer. Thanks for the tip.😉
Patrick, cheering too soon. With removing the HTML my entire screen build up of my products is messed up. See: https://www.beleef-smaak.nl/product/indiase-kip-korma-met-geroosterde-zoete-aardappel/
I will ‘re-install’ the HTML line for better looks. I will have to wait for the bug fix and hope customers will not have to empty their carts
;-(I don’t see how that is related; the product page does not use the same templates as cart.
Me neither, but even putting the HTML line back doesn’t help. All products show up like that now ;-(
What are you seeing? Looks ok my end.
Weird. How to post a photo?
On mobile idd looks normal. But on PC it doesn’t. Have refreshed, emptied caching, etc. Sry but what am i doing wrong?
Tried another browser? Share screenshot using dropbox or similar.
Hi Mike (and Patrick),
See for screenshot with Google Chrome: https://www.dropbox.com/s/ztud57npygoat20/products%20after%20woocommerce%20issue%20fix.jpg?dl=0
Idd with other browser (i.e. IE 11 or MS Edge) this problem isn’t there.
Do not understand that. Tried refreshing (ctrl-F5, empty history, caching, etc.) Chrome but that does not help.
Do you have any tip(s)?
TY
Tried al these refresh cache options (https://www.getfilecloud.com/blog/2015/03/tech-tip-how-to-do-hard-refresh-in-browsers/#.V2EM7LuLS9I), and after the last one it (finally) worked. Pffffffff. Still happy though 😉
The topic ‘Can't empty shopping cart’ is closed to new replies.