Historically, when showing options of the dynamic dropdown code, out-of-stock options were not presented. These items would be identified as out-of-stock if they were not populated in the SBA database table (PWAS) or if the quantity was <= 0. When out-of-stock quantities were made available for presentation, then all possible combinations based on the entries made in the attributes controller were added/presented. If the combination did not exist then it was marked as out-of-stock; however, there was a possibility that such product could never be put back into stock because they may never exist in such a configuration.
This has been resolved with consideration of an admin switch to allow either configuration to be presented. The files remain to be uploaded to the master branch, but testing so far has been promising.
Now, with this option enabled, product that have been identified in the database as "out-of-stock" will display when presenting out-of-stock product, but those combinations that would not exist because they are not populated in the database will not show on that same list.
Ie: attrib1-value1
attrib2-value3 qty 1
attrib1-value2
attrib2-value3 qty 0
attrib1-value2
attrib2-value4 qty 5
where attrib1 has values 1 and 2, attrib2 has values 3, 4, and 5 assigned in the attribute controller.
Then display of the product will only show the combinations of the above 2 and not a combination that includes attrib2-value5 because it is not assigned. As well, attrib1-value1, attrib2-value4 will not be displayed. attrib1-value2, attrib2-value3 will be displayed as out-of-stock.
This was initially addressed/discussed at: potteryhouse/stock_by_attribute_1.5.4#26
However is resolved here so will be closing out that item.