I tried to workaround this by joining tables.
There is no way to link the order of the options to the stock levels or vice versa. This is a pity at least.
The uc_product_options table contains the ordering column.
The uc_product_stock table contains the stock column.
I can join data on NID, but NID is not unique per option. The uc_product_options table identifier is OID, The uc_product_stock table identifier is SKU. There is no way to link them together afaik.
I think the OID should be saved in the uc_product_stock table.
Please help!


