Akopia Akopia Services

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

[mv] inventory::qty/item-quantity condition



******    message to minivend-users from "Stan Crump" <stanc@amintech.com>     ******

Using MiniVend V3.14-3
I'm working on a cart which displays the "quantity on hand" on each order
page using [data inventory qty [item-code]].

If sold out, the order pages display:
[if data inventory::qty::[item-code] < 1]
SOLD OUT
[else]
<A HREF="[area order [item-code]]" CLASS="buybtn">
PLACE ORDER</A>
[/else]
[/if]

It is critical that the customer not be allowed to place an order for a
quantity that is greater than the quantity on hand for any item.  So...
on the checkout page, I was trying to do something like the following:
[item-list]
[if data inventory::qty::[item-code] < [item-quantity]]
[then][[item-quantity] == [data inventory::qty::[item-code]][/then]
[/if]
[/item-list]
As you can probably tell, I don't know how (or even 'if') this can be
accomplished.  Any suggestions will be most appreciated.

Thanks!
   - Stan

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: