buildingblocks:
I set up a test 1.5.0 cart and merged the SBA v1.5.3 code into the stock 1.5.0 files. I set up a couple of products using the picture frame product example in the SBA instructions. The product displayed the individual attribute quantities on the store front product page as expected. With the testing I've done so far the module seems to be working fine except for this next thing I want to ask about. I thought I had come across someone asking about the quantity not displaying correctly. I searched around and can't find the post.
On the module download page it says
" For example, if you offered cotton or polyester shirts in green, red or blue and small medium or large sizes, this add-on would allow you to enter and maintain a separate stock level for each of the 18 possible combinations"
I set up a product using this scenario
material
cotton
polyester
color
green
blue
red
size
small
medium
large
In catalog > products with attributes stock, I set up the Quantity For Product Variant using 'all - attributes - combo' for the size, color and material and added a quantity. Then I adjusted the quantities for each variant and clicked the save button. Next I clicked the sync link. The total in stock synced to 119.
In the storefront on the product page each variant shows a quantity of 119 instead of the quantity showing in admin for each variant.
Is there a way to make it show the correct quantity for each variant or is that not going to happen because there are more options making it more complex?
Boy, do I feel dense. It took a long time to realize/understand the scenario described.
The deeper reason for the quantity remaining display issue here using: SBA 1.5.3 which is designed for ZC 1.5.1 and appears to work with ZC 1.5.0, is that once 2 or more attributes are presented, determining what constitutes a combination at which to display the available quantity? This eventually is addressed in one option of Dynamic Dropdowns which apparently was developed several years ago specifically for SBA.
The solution that has become accepted by most is a next option sequenced by previous option dropdown style. First selection is made, then the available second selection is presented. Second to third, etc... That plugin is incorporated into SBA 1.5.4 and is expected to be. incorporated into SBA 1.5.3 soon.
At any rate, the functionality of the modifications made to Dynmic Dropdowns in support of this version of SBA includes identifying possible variants that are out-of-stock, quantity remaining of variants identified at the last option in the list or the first option that has a child with no available quantity, whichever comes first.
There are a few other benefits incorporated, one of which is that in times past when using DD, without recoding, the entire store had to have SBA tracked quantities if anything had an attribute. While possibly convenient and necessary for some stores, not every store needs to track the amount of product that has say an option to download or email an attachment.
There are additional improvements in store as well including image changes based on selection of sub-attributes leading to full product selection.