Support » Plugin: WooCommerce » Woocommerce adds 1 extra item to cart

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author royho


    Most common cause of this is you have JS issues.

    I am having the same issue. Were you able to figure it out, haleeben?

    Hey angryjedi

    What version are you using? I had the problem with version but I think it’s been fixed in version 1.6.6, try updating woocommerce, see if that works.

    The same. Not fixed in version 1.6.6. Please help.

    Thanks for the tip, haleeben. I have been using 1.6.6 since I started this project, so unfortunately the problem seems to exist with the latest version as well. Any other tips?

    I’m also having this issue. Is there any update on the cause and suggestions on how to fix it?

    I was using version when I had the problem and to fix it I added this code to the woocommerce-functions.php file around line 361. But this has changed alot since then.

    // If we added the product to the cart we can now do a redirect, otherwise just continue loading the page to show errors
        if ($added_to_cart) {
    		$url = apply_filters( 'add_to_cart_redirect', $url );
    		// If has custom URL redirect there
    		if ( $url ) {
    			wp_safe_redirect( $url );
    		Add this code to fix the problem
    		// Redirect to cart option
    		elseif (get_option('woocommerce_cart_redirect_after_add')=='yes' && $woocommerce->error_count() == 0) {
    			wp_safe_redirect( $woocommerce->cart->get_cart_url() );

    I think the best thing to do is to submit a bug through Github and see if Mike can help.

    Worked. Thank you for the huge time-saver in trying to track this down ourselves.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Woocommerce adds 1 extra item to cart’ is closed to new replies.