View Single Post
  #4  
Old 10-18-2007, 04:16 AM
 
ben@lrb.co.uk ben@lrb.co.uk is offline
 

Member
  
Join Date: Feb 2006
Posts: 29
 

Default Re: Cart modification: how to hide option if product already in cart?

Hi Ralph,

Thanks so much - that works beautifully.

This is a very elementary question, but I am really new to this:

Why does the check need to be assigned to a separate variable for the evaluation to work?

Previously, I had:

Code:
{if $products[product].productid ne "3491"} {include file="customer/main/gift_wrap.tpl"}

but although it was including the file fine, it was doing it regardless of the existence of product 3491. Though I guess that could be (a) the double quotes round the product ID (b) the fact that I had the evaluation happening outside the products section??

It would be useful to know why this works for future ref...

Cheers,

Rachael
__________________
--
X-cart Version 4.1.9
Reply With Quote