6 replies [Last post]
gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Was this information Helpful?

I am having trouble with uc_node_checkout and anon checkout. Basically if an anon user attempts to add a product that has an associated node checkout to their cart they hit a login/register screen. If they log in, the get dumped on the home page, and if they then go to their cart, it is empty. Same result if the register.

i presume that the product does not get added to their cart until the submit the checkout node, because it seems that other products that do not have an associated node checkout can be placed in the cart while anon, and then are still there when the user logs in.

I've made sure that anon users have the create permission for the node type associated via uc_node_checkout to the product. When an anon user attempts to create one of these nodes (course_register is what it is called in our case) by going to /node/add/course_register they are redirected to ucnc-select/course_registration where there is a prompt for "product selection" and an unpopulated drop down for "product" followed by a submit button. This uc_node_checkout node is associated with products called course_sessions that are in a view that anon users can see.

I presume that the FAIL caused by this empty drop down list on the ucnc_select page is what is stopping the anon user from getting to the point where they can fill out their checkout node and add their product to their cart.

any ideas?

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: uc_node_checkout and anonymous checkout problems
gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: uc_node_checkout and anonymous checkout problems

thanks to wonder95 for pointing me toward the settings under uc node checkout (Home » Administer » Store administration » Configuration » Node checkout settings) second option under "Behavior settings"
is "Use UC Node Checkout to prevent anonymous node add access for node types it governs.
Enable anonymous creation of node checkout node types and anonymous users will be instructed to create an account."

Wonder95's picture
Offline
Joined: 02/20/2008
Juice: 283
Session variable is problem

See this post for details. Basically, the module attempts to set $form['#redirect'] to a values stored in $_SESSION['node_checkout_redirect']. The problem is, the session variable has been removed by the time the user login or creation is completed, so the page just stays there. You can disable the "Use UC Node Checkout to prevent anonymous node add access for node types it governs" option, but the redirect functionality should still work properly if you do want to force users to log in.

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: uc_node_checkout and anonymous checkout problems

Just to be clear, this is NOT an issue, it was resolved by changing the uc_node_checkout setting mentioned in my previous comment.

In my scenario there is NO LOGIN required at any stage of the shopping or checkout process. At the end, on checkout, ubercart will make a drupal user for the shopper (and log the user in), but unfortunately it does not seem to remember their billing address.

Wonder95's picture
Offline
Joined: 02/20/2008
Juice: 283
Can't add node to cart for anonymous user

And for some reason I can't get the anonymous user to be able to add anything to the cart. I have these settings set for anonymous:

  • can create orders (uc_order)
  • can create Registration (the name of my checkout content type) content
  • "Use UC Node Checkout to prevent anonymous node add access for node types it governs" is unchecked in Node Checkout settings

But when I add the node to my cart, it's empty. Is there something else I'm missing?

Thanks.

activelyOUT's picture
Offline
Joined: 04/20/2009
Juice: 70
Re: Can't add node to cart for anonymous user

subscribing