WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WooCommerce] Cart broken/not adding products (58 posts)

  1. dustylavender
    Member
    Posted 2 years ago #

    I've yet to get Woocommerce to add any product to my shopping cart. It redirects me to the page and displays "Your Shopping Cart is Empty".

    I've tried everything and I can't figure out why it won't add products to my cart.

    Has anybody else had this problem or know a fix? I just updated to the newest woocommerce (1.5.1) and still nothing.

  2. mikejolley
    Member
    Posted 2 years ago #

    Most common cause - PHP sessions aren't set up correctly on your server (hosting issue).

  3. dmitric
    Member
    Posted 2 years ago #

    Same issue here.
    It worked perfectly fine before but now is broken.

  4. edandrea
    Member
    Posted 2 years ago #

    Did anyone solve this problem? Would this help?

    Checking the session.save_path directive in php.ini It must be a folder writable by the server in order for sessions to be saved.

    If anyone found a definitive solution, could you post it?

    Thanks

  5. roddy@webseolive
    Member
    Posted 2 years ago #

    I am having this problem too, "Your cart is currently empty", and according to WooCommerce system status "/var/lib/php/session is writable" so it does not seem to be PHP Sessions issue...

  6. soflaweb
    Member
    Posted 2 years ago #

    This problem just appeared for me as well.
    It was working fine about a week ago.
    I am just starting to troubleshoot now, and this thread was at the top of my search results.
    Has anyone found a resolution in the woothemes support forums possibly?

  7. MarcBlake
    Member
    Posted 1 year ago #

    AN ANSWER: I too had this problem. Then it occurred to me I was logged in as ADMIN. So I used a different browser as an end user and the cart worked fine! That COULD be the problem I, like many of you, experienced.

  8. soflaweb
    Member
    Posted 1 year ago #

    I actually resolved my issue by contacting my host.
    Something had happened with an upgrade via Plesk control panel and one of the configuration files was missing from the root folder.
    I am sorry that I do not have more information, it was several weeks ago that this was resolved and I do not recall the details.
    The one item to take away is that, for my issue, it was not WordPress or WooCommerce. It was a server issue.

  9. seanuk
    Member
    Posted 1 year ago #

    I had this same problem.

    I was running PHP on my CentOS / Plesk server as a FastCGI application - so changed it to run PHP as an Apache module and it solved the problem.

  10. brithulsizer
    Member
    Posted 1 year ago #

    I'm having the same issue. Any solutions yet?

    I do have gravity forms installed with the WooCommerce add-on, and am unsure if this may be affecting it, but definitely need to solve the issue. I have contacted Woo Support, but no response yet.

  11. wishchaser
    Member
    Posted 1 year ago #

    I seem to have the same kind of problem. Add-to-cart problem does not seem to appear when clicked from admin account, but from other account, the ajax animation appears zand nothing. The product doesnot seem to update in cart. Please post a solution to this problem.

  12. SenorD89
    Member
    Posted 1 year ago #

    Just had the same

    My cart could not be found even though it had been added!

    Checked my settings and found...

    WooCommerce > Settings > Pages
    -------------------------------------------------------------------
    X Prepend product permalinks with shop base page (shop) Note: The shop page has children - child pages will not work if you enable this option.
    -------------------------------------------------------------------

    This was ticked!!! Unticked it and all is fine again!

  13. brithulsizer
    Member
    Posted 1 year ago #

    I must be having a different issue. I just tried that solution, and it did not work for me.

    My site will go to the cart, it just does not display the products that have been added...just shows empty.

  14. yelpcreative
    Member
    Posted 1 year ago #

    I'm also having problems with the AJAX if you could help.

    The payment and add to cart do not work.

    However it works fine when i am logged in.

    Any ideas?

    Test Page: http://jessieharris.co.uk/product-template

  15. druppi
    Member
    Posted 1 year ago #

    I am having the same issue here. I have all my pages defined under Woocommerce Pages, System status under Woocommerce also shows everything green, I have the right shortcodes in all my pages. But I still gets an empty Cart when I try to checkout. Any Help?

  16. druppi
    Member
    Posted 1 year ago #

    This happens whether I am logged in as admin or guest.

  17. brithulsizer
    Member
    Posted 1 year ago #

    My issue was directly related to the Gravity Forms add-on. I had it redirecting, and that was causing the error. It needs to be just set on "text".

  18. DGray
    Member
    Posted 1 year ago #

    This worked for me. Set your browser to accept cookies!! Finally worked for me

  19. DGray
    Member
    Posted 1 year ago #

    Let me also say, I followed all of the advice given above especially about PHP Sessions.

  20. ehong33234
    Member
    Posted 1 year ago #

    @brithulsizer, where can we change the setting to "text" like you mentioned? Please explain, thank you.

    Anyone else have a fix? When I click "SUBMIT", nothing gets added to cart and the product page just reloads minus the GF forms.

  21. ehong33234
    Member
    Posted 1 year ago #

    I noticed that if you input a regular price for the product under the standard woocommerce field (in product edit), the add to cart button reappears, BUT, now there are TWO prices shown on the product page. One is the woocommerce static price and the other is the variable price generated by Gravity Forms. HELP!

  22. 989
    Member
    Posted 1 year ago #

    in my php.ini the
    session.save_path
    was not orrecly set to /tmp
    on my vps server

    problem fixed

  23. helgatheviking
    Member
    Posted 1 year ago #

    i think we're looking at a lot of different problems here. but i am experiencing an "add to cart" failure only on macs (hate those buggers) specifically in Safari. I checked the cookies, but from the code I'd think the biggest reason that the add-to-cart function would fail is an empty $_REQUEST variable.

  24. DGray
    Member
    Posted 1 year ago #

    Please ensure your browser accepts cookies and javascript is enabled. Worked for me

  25. helgatheviking
    Member
    Posted 1 year ago #

    Cookies are critical. :) also, personally my issue was related to a bug in the 1.7 beta... SESSION variables weren't quite being set properly. Has been fixed by the awesome Woo team.

    Other potential causes could be a caching plugin causing your JS to break. This killed my checkout actually until I figured it out and didn't minify the checkout page. Make sure to check your console for JS errors. (F12 in chrome launches the developer tools.)

  26. jamesbuck
    Member
    Posted 1 year ago #

    Hi, I have this problem too. Form fills out, calculates price, and when you click 'Add to cart,' it does not add to cart, just refreshes page.

    http://mamacocoasdelights.com/product/assorted-truffles-test/

    Any help appreciated, thanks.

  27. helgatheviking
    Member
    Posted 1 year ago #

    James, did you verify the issues already raised in this thread? Cookies? Broken javascript? I can tell in 2 seconds by pressing F12 in chrome that you have javascript issues, so that could be a factor.

  28. jamesbuck
    Member
    Posted 1 year ago #

    Hi, cookies are working fine, the only JS error I get is this, which I don't think is related, but maybe someone could translate for me?

    Failed to load resource: the server responded with a status of 404 (Not Found) http://mamacocoasdelights.com/product/assorted-truffles-test/custom

    thanks.

  29. helgatheviking
    Member
    Posted 1 year ago #

    That isn't a JS error, though I don't know what it is. I see the following 2 JS errors:

    [cycle] terminating; zero elements found by selector jquery.cycle.all.min.js:1
    FB.getLoginStatus() called before calling FB.init(). connect.facebook.net/en_US/all.js:52

    so I would consider disabling some plugins to see if you can isolate further.

    As usual in these cases, I recommend you disable all plugins and then re-enable them one at a time. Also, You might need to remove everything you've customized in your functions.php and then add it back slowly too. Sorry, I cannot be more specific without digging into your code for you.

    PS- it is really hard to look at your site when I've given up sugar for a few weeks!

  30. jamesbuck
    Member
    Posted 1 year ago #

    Thank you, I'll try that with the plugins, always a good bet. Much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic