View Single Post
  #2  
Old 03-17-2009, 03:16 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: If statement for "State"

I am having problems getting this to work to show the state field for only US users, using the following code in skin1/mail/html/order_invoice.tpl

Code:
{if $userinfo.s_country eq "US"} {if $_userinfo.default_fields.s_state} <tr> <td><b>{$lng.lbl_state}:</b> </td> <td>{$order.s_statename}</td> </tr> {/if} {/if}
Using the above code the state field does not show at all. Any idea why or what I need to change?

Thanks
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote