I am in the process of upgrading our 4.5.4 store to 4.6.1 . Our template has some modifications which are transferring over for the most part, but I am having a hard time with IF Statements for Extrafields.
Previously I had the following code in skin/templateX/customer/main/product.tpl . The result would the that a message would display directly below the image if we marked the extra field.
Code:
{****** Product Page Sub-Image Messages ******}
{if $extra_fields.5.field_value ne ""}
<div id="product-details-backorder">
Currently on Manufacture Backorder
</div>
{/if}
{if $extra_fields.11.field_value ne ""}
<div style="color: #ff0000">
{$lng.lbl_haz_prod_short}
</div>
{/if}
{****** END Product Page Sub-Image Messages ******}
It worked famously in 4.5 but is evading me now. Any suggestions would be greatly appreciated.
Thanks,