Reference cck field

illepic - August 25, 2009 - 23:37
Project:Ubercart Custom Price
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have some very advanced pricing and I'd love to just add a few cck fields on to my Product content types and then use this module to reference those cck fields. I can't seem to be able to reference node fields within this module's Custom Price Calculation area with

global $node
$node->contentfield

Any tips?

#1

illepic - August 26, 2009 - 00:21

Hrm. Well, the following loads my node, as it should:

$node = node_load($item->nid);

And now I have a node object to play with. Is there a more efficient way to do this?

 
 

Drupal is a registered trademark of Dries Buytaert.