A stock level manager working with uc_stock, that takes into account the different sku of a product, according to the attribute selected.
Tests are made in -
* add to cart form
* cart view form
* final checkout
Error messages are themeable.
This module borrows freely (i.e - copies) some code from the Inventory API & Simple Stock Levels - (http://www.ubercart.org/contrib/132), by CpILL (http://www.ubercart.org/user/29), but is meant to be used with the uc_stock module.
according to user experience (http://www.ubercart.org/comment/20036/Re_I_noticed_contribution):
Be sure to disable uc_stockstub and Inventory API (from the modules menu) before installing uc_multi_stock.
see comparison of different stock managers : http://www.ubercart.org/docs/user/5181/out_stock_solutions
Other modules that can be used in addition to this one -
Ubercart Out of stock AJAX Notification
UC Attribute Stock Filter
Stock Notify






Thank you very much for this very much needed contribution, great work! As I will heavily rely on it I tested it intensively and founded few minor issues, sure fast to fix.
In all 3 tests of the stock level you test against the threshold. But the threshold is for informing admin that only few pieces are left, so you should test against 0. See patch.
Second is about your use of the t()-function which is not ok. See the patch how to get variables into the message.
Thanks again for this important contrib,
Al