@datakick said in Packs and stock management:
This is indeed nice feature, but I'm afraid the implementation won't be trivial. First of all, quantity on hand for packs can't be just some virtual number calculated in php. There are numerous places in core (and in hundreds of modules) that expects quantity information to be stored in stock_available database table. It's not possible to fix them all.
So, to implement this, we would need some synchronization mechanism that would keep data in stock_available table in sync - whenever quantity of child item is modified, we'd need to update pack quantity as well. I'm afraid it will be very hard to keep these in sync, even if we used database triggers.
Not only to track stock, but price of children. Such feature has been wished for ages, right from the beginning of Thirtybees. And we might see it implemented in a future release of Thirtybees if all the appropriate changes are made.