thanks for the suggestion.. I did it by assigning a variable called "giftwrapped" a value of either 1 or 0 depending on if the gift wrapping is in the cart.
here is the complete code:
Code:
<strong>Gift wrapping ё1.95</strong>
<br />
{section name=product loop=$products }
{assign var="giftwrapped" value=0}
{if $products[product].productid eq "17137"}
{assign var="giftwrapped" value=1}
<strong>Gift wrapping has now been added to your order.</strong><br />
<br />
{/if}
{/section}
{if ($giftwrapped == 0)}
If you would like us to gift wrap this item before posting it, please click the following link. You only need to add this once and we will gift wrap all of your items individually for just ё1.95
<br />
<a href="cart.php?mode=add&productid=17137&amount=1"><font color="#0033FF"><u>Add gift wrapping to this order</u></font></a>
<br /><br />
<small>Note: When gift wrapping is selected we will not include an invoice in the package so you can send it to a friend.</small><br />
<small>Note: Gift wrapping may vary from the picture</small>
<br />
{/if}