Closed (works as designed)
Project:
Commerce Stock
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2011 at 10:45 UTC
Updated:
26 Sep 2011 at 13:00 UTC
If another user's order, or admin, reduces stock levels of items in the current users cart, stock level validation errors will occur, and possibly confuse the hell out of the user.
I've never really encountered this issue in the wild with commerce sites, I'm just wondering how such an issue is handled by the world in general, and whether that can/should be applied to Commerce Stock?
Comments
Comment #1
guy_schneerson commentedi didn't get that can you provide a more detailed description on how to recreate this issue.
I am very interested in any workflow or setup that can brake the module intended functionality, as unlikely as it may be.
Comment #2
carn1x commentedOk here's an example:
1. ProductA has 5 in stock
2. UserA adds 5 items to cart
3. UserB adds 5 items to cart
4. UserB purchases cart
5. ProductA now has stock of 0, but userA still has 5 items in cart
A lot of this falls back to how aggressive the validation should be. Should it:
* lower cart quantity to conform to stock levels and inform
* or maintain quantity and generate error (as is current)
Would it be possible to offer both? I think you mentioned that 2.x will be more Rules based so maybe this scenario will be entirely up to the dev, but just thought I'd make sure the scenario above is considered :)
Comment #3
guy_schneerson commented@carn1x doesn't userA gets stooped when he try to check out with msg saying that the product is out of stock?
Comment #4
carn1x commented@#3 Yes he does get stopped, so perhaps this issue will be covered by the fixing of other issues, but it would be easy for users to get "stuck" in the checkout unless they realize they need to manually update their quantities, which for some users might be less evident that for others :)
Comment #5
guy_schneerson commented@carn1x, i think the reality is that if something runs out of stock after you added it to the basket then it is un-purchasable, once we have full integration with rules i believe it will be easier to customize the user experience.
so you can possibly have a rule that
* Remove the product
* set a msg: sorry we have just run out ..
* send to a page with related products "this items may be a replacement .."
i will close this issue but add a link from the roademap
Comment #6
carn1x commentedThe issue isn't just run out of stock, it could be lower stock than in cart, but sure, Rules integration is the answer to all our problems :D