I am using uc_node_checkout (D6) for an event registration and I want to include the node with the event registration details into the customer email sent out by ubercart. My problem is how to get the html of a cck node ? I thought this would be easy, but

$node = node_load($nid);
$html = theme('node', $node, FALSE, FALSE);

gives me the node title ok, but none of the cck fields. How do I get the full html of a cck node?

Comments

webdrips’s picture

See if this doesn't answer your question: http://drupal.org/node/722294

Looking to Migrate from Drupal 6/7 to Drupal 10/11? Have a look at our Drupal 11 demo site and request access.

malcolmp’s picture

This worked for me:

$node = node_load($nid);
$node->build_mode = 'full node';
$node = node_build_content($node);
$html = node_view($node);

Thanks a lot for your help.