View Single Post
  #1  
Old 06-06-2014, 12:12 PM
  drheath's Avatar 
drheath drheath is offline
 

Advanced Member
  
Join Date: Nov 2010
Location: Wisconsin
Posts: 53
 

Default 4.6 Change in Extra Fields IF Statement

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,
__________________
Business Edition 5.2.10
Gold Plus 4.6.1
Reply With Quote