Link to home
Start Free TrialLog in
Avatar of Brad Bansner
Brad Bansner

asked on

WooCommerce add to cart does not work if you are not logged in/authenticated

If I am logged in (as "admin") the "add to cart" links on my page work fine:
http://www.hovertrowel.com/smoothing-paddles/

(scroll down about half-way)

For the public, they do not work, and obviously I want them to. There is an option that redirects the user to the cart page after a successful addition, but since that is not happening, no redirect occurs, and the home page just reloads.

I've gotten no help on the WooCommerce forums, so trying my luck here! Would appreciate any advice.

Thank you!
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

It could be another plugin clashing (ones that use javascript  ) with it - try disabling all other plugins and then retry.

it could be a php Session problem (check with your host)

also

check 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.
 -------------------------------------------------------------------
Untick it

Or  try

changing  the WP permalinks to default
Not sure what do you want exactly, maybe this:

WooCommerce/Settings/Checkout/

Checkout Process
Checkout: Enable guest checkout
Allows customers to checkout without creating an account.
ASKER CERTIFIED SOLUTION
Avatar of Brad Bansner
Brad Bansner

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yep that sounds about right.
Avatar of Brad Bansner
Brad Bansner

ASKER

Your suggestions were spot-on and helpful, but not the answer in this case. Not sure what I do with this question.
you can either delete the question or take your answer as the solution (I think)
Answers provided were good but not the solution. I ended up finding the solution on my own.