Discussions

Theming the display node

Hi
I am trying to override a node, this node is a Product Display: the array_keys are

Array ( [0] => product:sku [1] => product:title [2] => comments [3] => product:commerce_price [4] => links [5] => field_products [6] => field_foto_image [7] => product:field_orig_file [8] => product:field_testlist [9] => product:field_use )

I can easily get to field_foto_image for example with

<?php
 
print render($content['field_foto_image'])
?>

but how do I get to the Product-relationship fields like product:commerce_price ? I can t figure out th proper syntax.

tx
Simone

Posted: Jan 8, 2012

Comments

ioioio on January 8, 2012

Hi
SOLVED
it was something really simple I had overlloked, the fields I was trying to pull were hidden in the Fields Display management page.

bharata on May 30, 2013

So are you saying that this works?

<?php
 
print render($content['product:field_image'])
?>

My referenced product fields are not hidden, but it still doesn't work. Did you do something else also?

Thanks!