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

Ryan,

Can you provide a step by step setup for how the DIWD uc_node_checkout registration system was set up (which you demonstrated at drupalcon).

The specific steps that I am unclear about are how to get the order number and status into the checked out node, and also how to get other details from the purchased product into the checkout node.

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
UC Node Checkout and anonymous users?

Can uc node checkout work with anonymous users?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: UC Node Checkout and anonymous users?

Hey Gregory, meant to bookmark this to come back to it when I saw you post it up. I don't have a full walk-through at the moment, but here's the code you requested in the other thread (meant to post this up before now, too!).

<?php
foreach ($order->products as $product) {
  if (!empty(
$product->data['node_checkout_nid'])) {
   
$node = node_load($product->data['node_checkout_nid']);
   
$node->field_status[0]['value'] = 'Complete';
   
$node->field_order[0]['value'] = l('Order '. $order->order_id, 'admin/store/orders/'. $order->order_id);
   
node_save($node);
  }
}
?>

BenK recommended I post up a zipped version of my demo site, so I'll try to get on that as well.

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Thanks! Here is a problem i

Thanks!

Here is a problem i ran up against yesterday though:

We are trying to force users to register for the site BEFORE they check out, this is because we are collecting user information into civicrm. The problem i am having is that uc_node_checkout interrupts the process of adding something to a cart, so if a user has to login or register BEFORE creating the checkout node, after they login or register they get dumped back on the home page, and their cart is empty. With products that don't have a uc_node_checkout, the user can attempt to add to cart, then login or register, and then wind up on their cart with their product in it.new topic:

http://www.ubercart.org/forum/support/9802/uc_node_checkout_and_anonymou...

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: Re: UC Node Checkout and anonymous users?

This is working for us, mostly. We are getting all the desired info from the order into our checkout node, but what we are not getting is the status updated beyond the "in checkout". How do we update that status to match the actual order status (ie "payment received" or "completed") and what is the difference between those two?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: UC Node Checkout and anonymous users?

Hmm, I had this bookmarked and am not sure what it was I intended to respond to. Sad

However, if it was the idea of matching up order statuses on the node to the order status of the order, for me that amounted to adding the appropriate options to the CCK textfield and updating it in my custom action upon checkout completion.

Also, if anyone is still looking for a walkthrough for using UC Node Checkout, I recommend the one available at Drupal Easy. It's based on my session at Drupalcon DC.

jrmorris's picture
Offline
Joined: 02/10/2010
Juice: 0
Event not displayed in catalog

Why is my event not displayed in the catalog. I have attempted publishing several times no result.

It's almost like the users have no permission to access that node directly. Everything seems to be working, however; I cannot create a page to display the event as a product. It's like it doesn't even exist unless you are "admin" in the Store administration.

Do I have to apply some type of node_access?

mliu's picture
Offline
Joined: 02/23/2009
Juice: 65
Showing the field_order in view as HTML link

In the view to display the field_order content (which is already a hyperlink) ... how does one force the view to treat the contents of field_order as html based content and not as plain text to be displayed.

I tried a number of different things .... but still trying to get it to work.

Any help will be appreciated.

[EDIT - ADDED]
I FOUND THE SOLUTION BY CUSTOMIZING THE FIELD THEME TO SHOW THE elements normal value instead of the SAFE values used by the default theme.

echo's picture
Offline
Joined: 08/05/2009
Juice: 31
email variable from order form

Can I access the customer email variable from the order form?

I'm filling some node checkout fields from both a module and from Ryan's ca snippet from #2, so I was wondering if it's possible to get the email from the order too (via ca after checkout complete), so the customer wouldn't have to enter it twice. Adding this doesn't fill in my field_email of my checkout node.

$node->field_email[0]['value'] = check_plain($order->primary_email);

nor does leaving out check_plain:

$node->field_email[0]['value'] = $order->primary_email;