I'm trying to print certain attributes created from EC Live Subproducts. These belong to a content type I created called "products".
I have used
<pre>
<?php print_r($node); ?>
</pre>
and under the [content] array I see:
[subproduct-attributes] => Array
(
[#weight] => 1
[#value] =>
Length
Size
Price: $15.00
[#printed] => 1
)
and under Length & Size there appears a drop down list of my different variations.
I have tried using
<?php
print $node->content['subproduct-attributes']['value'];
?>
in my node-products.tpl.php but nothing happens. Could someone please let me know what I'm doing wrong?
Comments
Comment #1
brmassa commentedi dont know exactly what are you doing, but there are two possible solutions:
instead
* print $node->content['subproduct-attributes']['value'];
use
1* print $node->content['subproduct-attributes']['#value'];
2* print $node->content['subproduct-attributes'];
regards,
massa
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.