Viewing 15 replies - 1 through 15 (of 16 total)
  • 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?

    Thread Starter EdwinWerner

    (@edwinwerner)

    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 -> Tools enable Template 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 .htaccess file with your FTP client. Some plugins write rules directly into the .htaccess file so even if you disable them they are still affecting your site because the .htaccess file is still being read & processed.

    Thread Starter EdwinWerner

    (@edwinwerner)

    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: https://d.pr/i/1gnAV

    You can replace it with a generic X just 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! ??

    Thread Starter EdwinWerner

    (@edwinwerner)

    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.

    ??

    Thread Starter EdwinWerner

    (@edwinwerner)

    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
    ;-(

    Plugin Contributor Mike Jolley

    (@mikejolley)

    I don’t see how that is related; the product page does not use the same templates as cart.

    Thread Starter EdwinWerner

    (@edwinwerner)

    Me neither, but even putting the HTML line back doesn’t help. All products show up like that now ;-(

    Plugin Contributor Mike Jolley

    (@mikejolley)

    What are you seeing? Looks ok my end.

    Thread Starter EdwinWerner

    (@edwinwerner)

    Weird. How to post a photo?

    Thread Starter EdwinWerner

    (@edwinwerner)

    On mobile idd looks normal. But on PC it doesn’t. Have refreshed, emptied caching, etc. Sry but what am i doing wrong?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Tried another browser? Share screenshot using dropbox or similar.

    Thread Starter EdwinWerner

    (@edwinwerner)

    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

    Thread Starter EdwinWerner

    (@edwinwerner)

    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 ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Can't empty shopping cart’ is closed to new replies.