Any ideas... anyone? -M
On Jun 1, 9:23 am, Michal <[email protected]> wrote: > That would not help, because all I can check at that point is how many > other people have that item in their carts, but I cannot make > decisions on whether to allow add or not based on this. > > In the given use case at this point product.items_in_stock would still > be 2. So I will allow any number of users to add it to their carts. > And lets say none of them changes anything again before checkout - I > will still be left with -3 in the items_in_stock. ...and 3 very > unhappy customers. > > Do you see a way to verify the cart once user clicks "Checkout"? > > -Michal > > On Jun 1, 3:40 am, Chris Moffitt <[email protected]> wrote: > > > > > You could used cart_add_verify to do an additional inventory check before > > adding to the cart. > > >http://www.satchmoproject.com/docs/dev/signals.html > > > -Chris > > > On Sun, May 30, 2010 at 5:43 PM, Michal <[email protected]> wrote: > > > The use case is - the stock for a given product is 2 items and 5 > > > shoppers put the same product in their carts and proceed with checkout > > > process and place an order. The outcome will be -3 in the > > > product.items_in_stock. Looks like the whole inventory tracking > > > mechanism is encapsulated in an signal listener attached to > > > order_success and there is no validation done anywhere before or even > > > here. > > > > So - my question is - what is the best signal to connect to do cart > > > verification before it is passed to payment for checkout handling? Or > > > maybe there is another way to solve it without modifications to > > > satchmo core? > > > > Regards, > > > Michal > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Satchmo users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<satchmo-users%2bunsubscr...@goog > > > legroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/satchmo-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Satchmo users" 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/satchmo-users?hl=en.
