View Single Post
  #1  
Old 03-13-2006, 02:07 AM
  bedstar's Avatar 
bedstar bedstar is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 115
 

Default Using {if} {else} statement to display correct text

Hi Guys

Were having a sale on and i have included a "was" and "now" price The was price is pulled from an extra field and if no price has been entered into this field then i want it to display a piece of code that will automatically display a was price. I have tried the following code but i can't get it to work.

Has anyone any ideas.

Code:
{if $extra_fields[3].field_value ne ""}{math equation="round(p / .9)" p=$product.taxed_price assign=was_price} { include file="currency.tpl" value=$was_price}б═{else}{$extra_fields[3].field_value}{/if}



Regards

John.
Xcart Version 4x
__________________
https://www.bedstar.co.uk
Reply With Quote