MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Inventory compare in search results



Russ,
I had to create a results page on which "sold out" products would display 
differently. With slight modifications the page could simply not display 
anything. (Warning: what I've done may seem quite kludgey...)

[if explicit]
        [condition]
        ('[item-data inventory qty]' < 1);
        [/condition]
        (code for sold-out item)             
        [else]
          (code for in-stock item)
        [/else]
[/if]

Note: I modified my own code so I could display it in a straightforward way. 
If I hacked it enough so that it doesn't work, let me know; I'll try to make 
it right for you.

HTH,
Rob Maurer
 
In a message dated 11/12/99 5:10:56 PM Eastern Standard Time, russ@khouse.org 
writes:

> *****    message to minivend-users from "Russ" <russ@khouse.org>     ******
>  
>  Hello,
>  
>  I've been setting up an inventory system lately.  I have all the
>  decrementing working off the report.html page but I can't get a product to
>  not display in the search results if it is out of inventory.
>  
>  http://www.minivend.com/minivend/minivend-list/1998-old/0447.html
>  
>  This page refers to a way to go to the next in a loop if the inventory 
shows
>  zero on the browse.html.
>  
>  I want to do the same thing, only with the search results page.
>  
>  [loop-next][calc]return 1 if [loop-data inventory quantity] <
>  1[/calc][/loop-next]
>  This doesn't work because the search results apparently aren't a "loop".
>  
>  Any ideas?
>  
>  Thanks,
>  
>  Russ


Search for: Match: Format: Sort by: