Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
At the moment I'm not seeing any check for capacity at the add to basket stage. As just an authenticated user, no special roles, I can add a quantity of 300 registration product to my basket where that product only has a remaining capacity of 1. Is that expected behaviour?
Comments
Comment #1
maxplus CreditAttribution: maxplus commentedI only see a check when adding items to the cart when the event is fully booked (no spaces available).
In every other situation, starting from one available space, you can simply overbook (see also ttps://www.drupal.org/node/2126417)
That is my experience with the current stable and dev version.
Comment #2
maxplus CreditAttribution: maxplus commentedIn My use case, I think I will just work with Commerce Stock.
Then I will set the default capacity to unlimited and let the Commerce Stock module control the capacity.
Maybe a better approach then using the capacity-field from Registration
Comment #3
blacklabel_tom CreditAttribution: blacklabel_tom commentedHi maxplus,
I agree that the capacity settings should stop people over booking, but that stock may do this in a more robust way.
If you could provide steps to re-produce on overbooking I'll try to take a look at it.
Cheers
Tom
Comment #4
blacklabel_tom CreditAttribution: blacklabel_tom commentedHi Maxplus,
The latest 2.x dev should now prevent overbooking.
Cheers
Tom
Comment #5
blacklabel_tom CreditAttribution: blacklabel_tom commented