Closed (works as designed)
Project:
Commerce Stock
Version:
7.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2011 at 10:19 UTC
Updated:
22 Sep 2011 at 01:37 UTC
Currently I'm finding that if I try to add 5 items of Product A, and there is only 4 in stock, then no items are added to the cart.
Is there a way around this with Rules or possible in config?
Thanks!
Comments
Comment #1
guy_schneerson commentedHi @carn1x,
the stock module currently stops you from adding more then in stock, you can use rules to do what you wont but i believe you will need to disable stock for your product types.
The main thing the module does is control the flow of the user experience, if that's not needed it could all be done using rules, it is possible that in the future the stock module will be more configurable but i think at the moment you except how it works or write update rules to do it yourself.
Comment #2
carn1x commentedSorry maybe I didn't explain what I'm trying to get:
* If there are 4x ProductA in stock, and I try to add 5x ProductA to my cart, currently no items add to cart, and I get an error.
* I would like the option to instead have the 4x in stock ProductA to add to the cart, and an error/message saying that only 4 items have been added to cart.
But I will try and accomplish this with Rules if I can.
Since Commerce and everything else is going Rules crazy (which I'm in favor of!), perhaps the currently built-in process of denying add to cart should be a default Rule itself?
Comment #3
guy_schneerson commented@carn1x, yes that's what i understood, currently the only way to get around this is by disabling the module, the plan is for version 2 to be fully rules based.
i have added this to the roadmap http://drupal.org/node/1269168#comment-5019366
Comment #4
guy_schneerson commentedI am closing this issue for now but do have a look at version two when it comes out
Comment #5
carn1x commentedthanks!