Hello,

There are a bunch of standard fields that come with the UC2 product node but I'm having problems trying to find a list of their field names... I can see the entry fields when editing a product node but I can't find the actual field names so I can display or reference them like this:

print $node->product_node_sku

I'm still quite new to PHP so hope the above is the right notation :)

I've been working with another developer and looking at the "node-product.tpl.php" page I can see he's referenced the sell price field like this: printf('%01.2f', $node->sell_price) so was thinking sku would be print $node->sku but it isn't showing anything even though the field has data in.

Can I see this from the admin screens somewhere? I've checked here but it only shows custom fields: admin/content/types/fields

Thanks for any help,
Nick

Comments

mdixoncm’s picture

The SKU field is confusingly called "model" if I remember correctly (it was in UC1 anyway!).

You can always do print_r($node) to see the the entire node object if you need to ...

Mike,
Computerminds offer Drupal development, consulting and training