MiniVend Akopia Services

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

Re: Inventory Tracking (help)



>Try this:
>
>---snip---
>[tag flag write]inventory[/tag]
>
>[item-list]
>[data inventory qty [item-code] -[item-quantity] decrement]
>[/item-list]
>---snip---
>
>Put this where you want the decrement to take place.

Thanks, that works great!

One more question about using the [data] tag:

I want to add to the JavaScript in the basket.html file that checks for
values below 0 - I want it to also keep the user from using a number greater
than inventory, but when I tried to implement it, i realized I couldn't put
minivend tags in the Jscript because it's not physically inside the
[item-list] loop... has anybody else tried to do this?  What's the best way
to implement this?

Trevor Garside
Actaeon West, Inc.
trevor@actaeon.net



Search for: Match: Format: Sort by: