Discussions

New field will not display..

I can add a field to a product, I can see and use that field when editing a product page, I can see the field while in the edit page and hitting "preview" - yet the new field never shows when I just view the page normally. What am I doing wrong?

Posted: Mar 4, 2013

Comments

asperi on March 6, 2013

Thank you for the link ,that did help, at least getting me back to looking at the node--product-display.tpl.php ...I think I need to edit- adding

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

For the "field_discirtion" I tried field_video and video (the name of the field) yet it still does not show.

I know the video is there and works, plays fine when previewing the product from its edit page. Just dont understand whats blocking it from showing on the product page.. The feild I am adding is JW player, but any new field does not show..

asperi on March 6, 2013

Looks like you need the whole code.

<?php
    hide
($content['product:field_description']); //where it says 'field_description' can be any field that in  your product display.
   
print render($content);
?>

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

Works! Thank you!!!