[ic] Hiding the BUY button...

Garry interchange-users@lists.akopia.com
Wed Jul 25 07:22:01 2001


Hi.

I used this piece of code (below) to hide the "BUY" button when an item is
out of stock, on the flypage - and this works fine.
However, I want to include the:  "[if ordered [item-code]]"   somewhere in
there, so that if a customer has already ordered an item, the "BUY" button,
again, is not visible, even if the item is in stock.  This is because, if an
item is ordered from the results page, and then ordered again from the
flypage, it appears as an additional item in the basket, instead of "QTY 2".
Can anyone tell me how to finish this off - I have tried several methods but
to no avail.

These lines replace the:   "<input type="submit" value="Buy it Now!">"  line
on the flypage:  for:

 [if-item-data inventory quantity < 1]

 [else]
      <input type="submit" value="Buy it Now!">
 [/else]
 [/if-item-data]



[if ordered [item-code]]


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com