WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[closed] Problem with adding and removing items to/from Cart (28 posts)

  1. Antrock
    Member
    Posted 1 year ago #

    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.

    Info:

    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: http://daljinci.si/shop/ (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.

    http://wordpress.org/extend/plugins/woocommerce/

  2. Antrock
    Member
    Posted 1 year ago #

    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.

  3. Daniel Espinoza
    Member
    Posted 1 year ago #

    Hi Antrock,

    Your site is currently throwing a Fatal Error: http://cld.wthms.co/hcea

    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.

  4. Antrock
    Member
    Posted 1 year ago #

    Daniel,

    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: http://www.media-trade.si/daljincitest/shop/

    (note: the images don't work)

  5. Daniel Espinoza
    Member
    Posted 1 year ago #

    Ok gotcha. Best of luck!

  6. rrvoigt
    Member
    Posted 1 year ago #

    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?

  7. phildom
    Member
    Posted 1 year ago #

    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!

  8. Daniel Espinoza
    Member
    Posted 1 year ago #

    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.

  9. phildom
    Member
    Posted 1 year ago #

    #34686 thanks

  10. rrvoigt
    Member
    Posted 1 year ago #

    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
    the http://themeforest.net/item/kallyas-responsive-multipurpose-wordpress-theme/discussion/4091658?page=41

    Regards,

    Robert

  11. phildom
    Member
    Posted 1 year ago #

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

  12. magdor
    Member
    Posted 1 year ago #

    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.

  13. phildom
    Member
    Posted 1 year ago #

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

    <?php
    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).

    https://www.creightonscakes.co.uk

  14. magdor
    Member
    Posted 1 year ago #

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

  15. magdor
    Member
    Posted 1 year ago #

    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

  16. phildom
    Member
    Posted 1 year ago #

    Add it to the header.php.

  17. magdor
    Member
    Posted 1 year ago #

    But wouldn't that then apply to ALL pages? Would it not make more sense just to apply it to the shopping cart page, i.e. disable server side caching only on certain pages?

    Caching has value (speed/performance) for all the other pages...

  18. phildom
    Member
    Posted 1 year ago #

    It would apply to all pages. I doubt you will see a massive drop off in loading speed though.

    My site https://www.creightonscakes.co.uk/2013 showed no signs of slowdown.

    If you do decide to use a third party cache program make sure you exclude cart and checkout type pages from browser caching as well.

    Try the code, see if it works, see if it slows the site and then decide?

  19. magdor
    Member
    Posted 1 year ago #

    Ok, tried it but no effect. Still the same issue. I guess I need to go for paid support as this is taking way too much time to figure out.

  20. aliferis
    Member
    Posted 1 year ago #

    DB cache reloaded fix broke it exactly as described for me

    Fixed by switching it off

    then back on - in wrapper mode and its ok

    joe

  21. magdor
    Member
    Posted 1 year ago #

    @joe: Wow, deactivating DB cache reloaded fix and the problem was gone. When I tried to switch it back on in wrapper mode I got all kind of weird php errors. But it is clear now that these two plugins clash. Thanks.

    I'll see if I can find a solution for the wrapper mode errors.

  22. redearthdesign
    Member
    Posted 1 year ago #

    This is the error message I saw when I enabled the wrapper mode, repeated twice:

    Warning: Parameter 1 to wpdb::escape_by_ref() expected to be a reference, value given in [...]wp-content/plugins/db-cache-reloaded-fix/db-module-wrapper.php on line 450

    So I disabled the wrapper mode and tried the no-cache lines in the header and set it up to only run if I was on the cart or checkout page. That just emptied the cache and cart.

    So third, I tried updating the Cache Filter settings in the plugin settings page under Additional Options.

    I changed it from:
    _posts|_postmeta

    to this (wc for woocommerce variables):
    _posts|_postmeta|wc

    and I was able to edit what was in my cart and put through an order. So looks like that might do the trick for WooCommerce compatibility. If anyone finds otherwise, please share! Definitely want the speed this plugin offers, but need to have a working cart too.

    Thanks!

  23. ascv
    Member
    Posted 1 year ago #

    hello, THIS IS NOT A DUPLICATE THREADS IT IS A UNSOLVED PROBLEM. Could please someone help me? People keep redirecting me toward other pages but it doesn't hlep me at all.
    I am using the zenon them and I sorted my product by category. You can see the display on this page http://site.kathlinargiro.com/the-designer-collection/. I have 3 questions:
    1- how to get rif of the number into bracket next to my category name? (it is in yellow on the page)
    2- how can I make the display of my category bigger and more playful?
    3- When you clic on the category only 6 products show per page and I would like 8 product (or all my product) per page. How can I solve that?

    Ps: I am not good at coding.

    Thank you for your help

  24. cerrone
    Member
    Posted 1 year ago #

    I just switched from default permalinks to custom
    WP
    …/%year%/%monthnum%/%postname%/

    WC
    …/courses/

    Now, when a product is added to the cart, on the cart page, the (x) at the far left to the product does not work. the site reloads with the same product(s).

    It does depend on the permalink structure.
    A

    (I will not change back because of SEO, pretty URLs, direct links in blog posts etc)

  25. cerrone
    Member
    Posted 1 year ago #

    btw, when all was set to DEFAULT (WP & WC) all worked fine (but obviously I got horrible links then)

  26. carmina_b
    Member
    Posted 9 months ago #

    I was reading about cache trouble, and I found a solution!!!

    I had this plugins installed:
    DB Cache Reloaded Fix
    WP Super Cache

    I desactivated both, and troubles with shopping car were fixed.

    I don´t know If I should leave then desactivated. But it works

  27. meskey
    Member
    Posted 8 months ago #

    I have been having the same issue. All possible plugins disabled and items will add to cart but usually cannot be removed by clicking the red x to remove them. Apparently they are actually being removed because if you just refresh (F5) the page after clicking the delete red x the cart will show up as empty. Also, if you change and item's quantity to 0, then click the update button, they will be removed as well. Clearly a cart cache refreshing issue. Does anyone have any solutions I may have missed in these threads? FYI - I Have tried changing the template but no effect. Site in question is http://www.digitaldesignserver.com

  28. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    This thread is six months old - no longer even the same version of WP or the plugin. Please start your own topics as per:

    http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    You can do so here:

    http://wordpress.org/support/plugin/woocommerce#postform

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic