Solved

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

Posted on 2014-09-30
7
1,511 Views
Last Modified: 2014-10-06
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!
0
Comment
Question by:bbdesign
  • 3
  • 3
7 Comments
 
LVL 29

Expert Comment

by:chilternPC
ID: 40353462
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
0
 
LVL 15

Expert Comment

by:eemit
ID: 40355476
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.
0
 

Accepted Solution

by:
bbdesign earned 0 total points
ID: 40355509
Thanks for the comments. I tried all of them out, did not fix. However, I think the problem is that the products were set to Private rather than Public.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 29

Expert Comment

by:chilternPC
ID: 40355517
yep that sounds about right.
0
 

Author Comment

by:bbdesign
ID: 40355556
Your suggestions were spot-on and helpful, but not the answer in this case. Not sure what I do with this question.
0
 
LVL 29

Expert Comment

by:chilternPC
ID: 40355589
you can either delete the question or take your answer as the solution (I think)
0
 

Author Closing Comment

by:bbdesign
ID: 40363221
Answers provided were good but not the solution. I ended up finding the solution on my own.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
This video teaches users how to migrate an existing Wordpress website to a new domain.
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question