MiniVend Akopia Services

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

Re: Inventory Tracking (help)



At 01:07 PM 6/18/99 , Trevor Sky Garside wrote:
>******    message to minivend-users from "Trevor Sky Garside"
<trevor@actaeon.net>     ******
>
>>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.

	Hmm, that looks like a different syntax than I'm used to....   hmmm..

>
>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?

	Define a function, and send the minivend tags to the javascript.
checkfield([value thisfield]);

>
>Trevor Garside
>Actaeon West, Inc.
>trevor@actaeon.net
>
>-
>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
> 

Ryan Hertz                                              tel  520-645-3812
Webmaster                                               tel  800-645-BAIT
Advertising Director                                    fax  520-645-2588
Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.com


Search for: Match: Format: Sort by: