Well, this is a very tricky thing when you consider multiple people are
using the site.  To do it right, you'll have to add code that reserves
inventory while it's in someone's basket.  I'd write a function that takes
the ID of a SKU and returns the inventory available.  Inside the function
get the inventory level and the sum off all the quanities in anyone's
baskets or invoices still in progress.  Then you can call this function from
ADD_BASKET, UPDATE_BASKET and other places.

Leon


-----Original Message-----
I've noticed that the current version of FT allows a visitor/user to order
more items than available (in stock), even if the backorder setting is "No"
and the inventory reserve is set to zero.  Ideally, the items should not be
added to the basket under these conditions.  Does anyone know if this can be
acomplished from the point of item addition to the basket - or, would this
need to be executed when the user attempts to checkout?  Which of the
modules would need to be updated for this?  Any help or guidance offered
regarding this matter would be greatly appreciated.  Thanks in advance!

Regards,

Pat Dupuis



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to