MiniVend Akopia Services

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

Inventory checking (revisited)



About a month ago, I think I asked about a way to 'cap' orders, so that nobody could order more of an item than 
the store has in stock (without directly coming out and saying "we have n on stock").

If there were any suggestions about this, I must have missed them.  :(

So, if anybody has any ideas, here's what I currently have:

My inventory is kept in inventory.asc, with two columns:  code and inv
I do a lot to the .asc source of the file with outside perl scripts (so I need minivend to keep updating from the 
.asc source)
There is a bit of javascript at the top of basket.html which checks for negative numbers in the quantity field.
I have tried fiddling around with it without much success (I am not all that familiar with js).

What I have considered doing is writing a script, such that calls to basket and check-out pages are pre-processed 
and checked for bad inventory entries, but I am unsure how to have the script get all the form variables back to 
minivend without making the user press a button.

If anybody can help, or suggest a better way, or whatever, please let me know!

Thanks!
---
Trevor Garside
Actaeon West, Inc.
trevor@actaeon.net



Search for: Match: Format: Sort by: