Closed (duplicate)
Project:
Commerce Stock
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2011 at 19:09 UTC
Updated:
5 Aug 2013 at 16:22 UTC
A key stock issue relates to bundles. http://drupal.org/project/commerce_product_bundle
How is stock handled in the case of a bundle?
Comments
Comment #1
guy_schneerson commentedThe stock module does four main things:
1) Establish the point that stock should be checked
Displaying the product form
Adding a product to the cart
Updating the Cart
Checking out (to be implemented soon)
2) Check if an item is in stock
3) Take an action
Disable add to cart button
Invalidate a form
4) Inc/Dec stock level
It looks to me that 1 and 3 are constant but people have different needs for 2 and 4.
I can see two approaches for making this a more flexible module
A) Abstract 2 & 4 so they can be implemented by sub modules/plugins like commerce_shipping
B) Use a rules based system, don’t know if this is practical for all the functionality but may help (already handles 4)
Havent used the Product Bundle but posibly in case of a sub module we can write a spesific implimintation for Product Bundles covering two options:
* bundle stock - each bundle has its own stock
* product stock - each product has stock. A bundle is in stock if all of its products are.
Comment #2
guy_schneerson commentedI created Commerce_stock Roadmap that will attempt to resolve this issue in a version 2 of the module
Comment #3
carlitus commented¿Any news in this issue?
Comment #4
guy_schneerson commentedHi @Carlitus,
Unfortunately no, i did look into this a few month back and came across a few issues primarily that the module creates a 'different' add to cart experience and would require more investigation and possibly a very custom implementation of stock.
I am planning to make version 2 more API based and this will probably make integration easier however my immediate focus is to make sure both version 1 and 2 are on stable releases and this may take some time.
Hopefully ill get an opportunity to work with Product Bundles on one one our commerce projects (and this should help speed things up).
Comment #5
carlitus commentedthanks @guy_schneerson for the reply ;)
Comment #6
Brydjy commentedHi,
Any news in this issue ? I would like to interoperate Product Bundle and Commerce Stock , have you got any informations or plans about it ? Thank you.
Comment #7
guy_schneerson commentedhi @Brydjy
Sorry haven't got around to it yet.
The plan is do it when a client needs it or i find some spare time (lots of other stock updates and features).
Or someone else contributes a patch or some suggestions about how the two should work and tech implantation.
Comment #8
guy_schneerson commentedThis is actually a duplicate of https://drupal.org/node/1288958 so closing (added a link to this issue from the original one).