Support » Plugin: WooCommerce » Problem with adding and removing items to/from Cart

  • I’ve updated to WooCommerce 2.0.5 as soon as the theme I use got WC 2.0 compatible. Now I have problems with adding and removing items to and from the Cart. Sometimes it works but when it doesn’t the browser just seem to time out. It seems to get worse when user is not logged in.

    This also happens with default theme so I’ve ruled out theme’s fault. I’ve removed all my code from functions.php to no avail. Also disabled all plugins (bar WooCommerce) and still same problem. I am not using any cache plugins. WooCommerce system status shows no errors. I haven’t noticed this on previous version of WC 1.6.


    WC Version: 2.0.5
    WC Database Version: 2.0.5
    WP Version: WP 3.5.1
    Web Server Info: Apache
    PHP Version: 5.2.13
    MySQL Version: 5.0.96-community
    WP Memory Limit: 64MB

    Is this a bug in WooCommerce 2.0 or is there a problem with my host?
    Can somebody please help me or did anybody see anything like this before?

    The website in question is: (sorry it is not in english but one can find add to cart button)

    To recreate the error try adding and removing the items to Cart.

Viewing 15 replies - 1 through 15 (of 27 total)
  • I’ve been in contact with my host’s support this morning and they have been able to recreate the problem but their server is not showing any errors. They said this most likely points out to an error in WooCommerce’s code somewhere.

    It is hard to believe I am the only one with this problem so I’d suggest people to try and test their Cart functionality.

    Hi Antrock,

    Your site is currently throwing a Fatal Error:

    I’d suggest switching to the TwentyTwelve theme to see if you can add to cart. If you can, then there may be an issue with the theme.


    This is because I’ve decided to revert back to 1.6.6 and am just in the middle of the process. I will install another WordPress and install WC 2.0 in there so I can test it.

    New test installation where the issue also appears:

    (note: the images don’t work)

    Ok gotcha. Best of luck!

    Same problem here. Have tested it with delete and i also can’t seem to delete a product once it is in the cart. Also adding more products from the same item doesn’t work. So…….. is there a fix?

    I have the same problem, I have raised it here and raised a ticket but no one from woo has bothered to respond. There does seem to be a big problem with woocommerce as I am using a woo theme with no plugins and it’s still broken. Maybe one day woo will respond, after all they took the money!

    Hi rrvoigt, If you post the site URL I can take a look. I’d suggest also to switch to the TwentyTwelve theme to see if the issue still happens. If so, then we can rule out an issue with the theme.

    Hi phildom, please post your ticket number and I’ll take a look at it.

    #34686 thanks

    Dear Daniel,

    Just switched over to Twenty Twelve and same issue.
    Currently the site is under construction. Can i have your email address and i’ll sent you the login information so you can do some test with the sample products.

    The problem i seem to have is:

    – sometimes i can’t delete products.
    – often all the products come in de widget, but not in de cart page.
    – The checkout on the cart page doesn’t seem to work, while on the widget page every thing works.

    I am using Kallyas theme and developer says it supports 2.0.5



    I have said this on other posts of the same, the only working solution is to re-install Version 1.6.6. Something fundamental changed in Version 2 and it is causing these issues. It is not theme or hosting related, it is Woocommerce 2.?

    Has anyone heard from the dev’s yet or found a solution without reverting back to 1.6.x? Currently running into the same issue.

    With Daniel’s help I managed to find it was a caching issue. I added the following bit of code to the header:

    header(“Cache-Control: no-cache, must-revalidate”); // HTTP/1.1
    header(“Expires: Sat, 26 Jul 1997 05:00:00 GMT”); // Date in the past

    This disables server side caching (so I’m told) even though my host said that they didn’t use server side caching. It solved all cart issues for me. V2 works as it should (for the moment).

    I assume this code is only added to the header of the cart page, right?

    I added the code above to cart.php but it does not make a difference. Could you help me out by specifying where (in which files and where in the files) this code needs to be placed.

    I placed it at the top of cart.php

    Add it to the header.php.

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Problem with adding and removing items to/from Cart’ is closed to new replies.