[ic] superceded parts with price=0

MS Support interchange-users@icdevgroup.org
Sun Nov 3 15:31:01 2002


-----Original Message-----
Sent: Sunday, November 03, 2002 12:44 PM
Subject: [ic] superceded parts with price=0


I have 4.8.6 and a modified foundation. Some of my items have a price of
0.00 and a description such as:
Superceded, Use Part# 1234 insetad.

These items need to exist in the databse because many people search for
the old part numbers. I'd like to supress the display of the buy button
on the results page when the price=0 so the old part doesn't get ordred.

I'm sure I can wrap the buy botton with an if statement but I can't seem
to get the correct syntax. Can anyone help or point me in the right
direction?

DB


--------------------------------------------------------------------

Have you tried using the inventory syntax as provided in the demos...?

I have done this with....

[if-item-data inventory quantity >= 1]
<B><A HREF="[area order [item-code]]">Buy Now!<IMG SRC="/cart.png"
BORDER=0></A></B></FONT>
[/if-item-data]


Essemtially, could be modified to...

[if-item-data price > 0]
<B><A HREF="[area order [item-code]]">Buy Now!<IMG SRC="/cart.png"
BORDER=0></A></B></FONT>
[/if-item-data]


Cheers

RLS