• I am having issues with the shopping cart for my website. When an item is added to the cart it appears as it should, but if I want to delete the item either by clicking on the red X or by changing the quantity to zero and updating the cart. The item does not remove from the cart. I am running woocommerce 2.0.2 I have not upgraded because of a conflict it was having with the database.

    Here is the web address: http://www.fantasytrophystore.com

    Any help or suggestions would be appreciated!

    Chip

Viewing 1 replies (of 1 total)
  • Working with woocommerce lately, I noticed that in versions 2.3+, there is a bug in the code that will not let you delete a product from the mini-cart or cart page IF YOUR DEFAULT WP AND WOOCOMMERCE LANGUAGE is set to anything but English.
    After countless of hours searching for a solution, which by the way most people seem to believe it is related to multilingual versions, either with WPML or some other plugin or a cache problem, I installed a fresh version of WP with Woocommerce and nothing else so I could debug it.
    What I found was that the file responsibly for this error is woocommerce/includes/class-wc-form-handler.php
    In that file around line 394, the code is

    wc_add_notice( sprintf( __( ‘%s removed. %sUndo?%s’, ‘woocommerce’ ), $product ? $product->get_title() : __( ‘Item’, ‘woocommerce’ ), ‘‘, ‘‘ ) );

    Changing the %sUndo?%s to anything you want, even removing just the ? e.g. %sUndo%s, or making the U small e.g. %sundo?%s fixes the problem.

    working!!!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Woocommerce] Problem deleting items from cart’ is closed to new replies.