This is more what I need on my product.tpl page. I tried adding this to my product page, but it doesn't reference my specified extra field (ie. {if $extra_fields.6.field_value ne ""}{$extra_fields.6.field_value}{/if} ). I also tried this again after I disabled:
{if $active_modules.Extra_Fields ne ""}
{include file="modules/Extra_Fields/product.tpl"}
{/if}
then all the extra fields went away. Any suggestions to call out specific extra fields so I can place them on my product.tpl page?
Christine
Quote:
Originally Posted by toltion
You can display a single Extra Field value in the product page using the following code (works in 4.1.9).
{if $extra_fields.5.field_value ne ""}{$extra_fields.5.field_value}{/if}
The number '5' in the code specifies the index value of the Extra Field. To find this value, go to the Modify Product page in admin, view the "source" HTML of the page and scroll down to the extra fields. Look for name="efields[6]" and subtract 1 from the number displayed. The index is one less than the number of the Extra Field.
|