View Single Post
  #2  
Old 04-24-2007, 01:19 PM
 
sho ryu ken sho ryu ken is offline
 

Senior Member
  
Join Date: Nov 2005
Location: England
Posts: 150
 

Default Re: If <item X in basket> then

ok, so I have figured half of it out.

{section name=product loop=$products}
{if $products[product].productid eq "17137"}

Thank you. Gift wrapping has now been added to your order.<br />

{/if}
{/section}




BUT.. I also want to run something like:



{if $products[product].productid NE "17137"}
If you would like to add gift wrapping click here blah blah etc.
{/if}

But if I do this in a 'section' then it executes the code once for every single in the basket . So if I have 4 items in the basket it will execute that code 4 times. Any wayto make it only execute once?
Reply With Quote