[ic] How to display a message in flypage about quantity?

jojo@blackpoint.de jojo@blackpoint.de
Fri, 30 Mar 2001 23:56:27 +0200 (CEST)


On 30 Mar, Thomas N. Stefanidis wrote:
> How can i display this message in the flypage?
> 
> if item is quantity is N/A then show message "not available"
> if item is quantity is 0(zero) then show message "suspense"
> and if item quantity is -1 then show message "special order" and display
> the "speacial order" link
> 
> else show normal message (in stock)
> 
> Thank you very much.

Try

[seti dummy][item-field quantity][/seti]
[if scratch dummy =~ /N/]
not available<BR>
[elsif scratch dummy < 0]
special order<BR>
[/elsif]
[else]
suspense<BR>
[/else]
[/if]

if you have a field quantity in your products file or try it with

[if-item-data inventory quantity < 1]

and so on, if you have the quantity in your inventory file.

(not tested)

Joachim

-- 
-------------<FreeBsd>--------------------------------------------------
Hans-Joachim Leidinger          black point arts Internet Solutions GmbH
email: jojo@blackpoint.de       FAX  : +49 0209-398265
http://www.bpaserver.net