[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Slick little inventory checker (not!)
****** message to minivend-users from Barney Treadway <barney@wttech.com> ******
Hello all,
I've been wrestling with inventory.asc and a way to inform clients when
we're out of stock. I looked through the list and adapted this into
basket.html. This is very cute (for a nonprogrammer like me!!) EXCEPT that
it only works if there is an inventory quantity, for unlimited items (blank
qty in inventory) it of course shows not available. Also, the not available
doesn't remove subtotal info etc. keeping the item in the order when it
shouldn't be.
Can a savvy mvender show me how to do some magic and determine if there's
value on the inventory qty before comparing to item-quantity?
[if data inventory::qty::[item-code] < [item-quantity] ]
<FONT size=-2 COLOR=RED>NOT AVAILABLE</FONT>
[else]
<input type="text" name=[quantity-name] value="[item-quantity]" size=3>
[/else][/if]
Thanks ever so much!
Barney Treadway
WT Technologies
barney@wttech.com
-
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