On Tue, Apr 14, 2009 at 2:55 PM, steveluscher <[email protected]> wrote:

> 1) You are selling Orders for items of various ProductVariants,
> belonging to one Product
> 2) There may be an upper limit to how many Orders you can take for any
> given Product

> What do you think is the best way to prevent overselling in this case?

> * Something I haven't considered?

My wife sells jewelry and many pieces are one-of-a-kind. I have an
inventory table with an entry for each piece, including location: web
site, gallery, etc.

If a customer puts that item in a cart, then the "location" is set to the
cart id, and no one else can even see the item, much less purchase
it. If the cart times out, the item is returned to inventory and becomes
visible again.

Maybe not directly analogous to your situation, but something to think
about. :-)

HTH,
-- 
Hassan Schroeder ------------------------ [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to