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

guy_schneerson’s picture

The 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.

guy_schneerson’s picture

I created Commerce_stock Roadmap that will attempt to resolve this issue in a version 2 of the module

carlitus’s picture

¿Any news in this issue?

guy_schneerson’s picture

Hi @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).

carlitus’s picture

thanks @guy_schneerson for the reply ;)

Brydjy’s picture

Hi,

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.

guy_schneerson’s picture

hi @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.

guy_schneerson’s picture

Status: Active » Closed (duplicate)

This is actually a duplicate of https://drupal.org/node/1288958 so closing (added a link to this issue from the original one).