View Single Post
  #96  
Old 12-07-2008, 10:37 AM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: common if/then modifications I make to x-cart...

Here's and {if} that I believe I've seen alluded to, but I haven't figured out how to make happen.

Say I want to display something on products.tpl and/or product.tpl if a certain extra field has a particular value. How would one go about that?

eg:
Code:
{if $extrafield eq "0"}Choose ground shipping for Christmas delivery {elseif $extrafield eq "3"}Choose 3 day select for Chrismas delivery {elseif $extrafield eq "2"}Choose 2nd day air for Chrismas delivery {elseif $extrafield eq "1"}Choose next day air for Chrismas delivery {/if}
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote