Solved

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

Posted on 2014-09-30
7
1,229 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 28

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 28

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 28

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now