I was wrong in my previous post. I stated that checkboxes could at least be handled as part of being stock. So far, the testing that I have done, checkboxes alone do not track well with SBA in that when I had a store setup to not display the cart after adding product, one option name, had two option values. Selecting any combination of check boxes (or none) while stock was applied to one or more of the checked values, did not add the product to the cart.
Apparently what I saw in the above site, was still being modified as I was testing and the checkboxes had not had stock applied to them (therefore responding as a normal ZC operation). Anyways, I still need to test a few other cases to see what the limits are, but I have the following:
Okay. Checkboxes... I've started an issue on Github related to checkboxes. Looking for some input.
I'm beginning to think that checkboxes should not be treated as stock related quantities. Besides the complexity that can be added to the code, I'm thinking about this from the side of stock control...
A checkbox typically has two states, though it could have a third "intermittent" state at least in assignment. Generally only two states are considered, checked or not checked. Further, general usage seems to be such that, yes I agree/have read/etc... or please add this to the object/purchase. A perceived "normal" usage is like please make this with the added color, style, shape or I'll take that free item with it, or I do have something more to add. While it may be possible to consider each of those traits as something that could be tracked by stock, and actually part of the design/incorporation already is to consider the gift wrap condition (please add gift wrap to this product or not) such that the quantity of giftwrap is not actually tracked, just the fact that such a selection has been made or not.
By trying to track such items as stockable quantities, if 2 or more checkboxes are applied to a single option name or if two separate option names have checkboxes, then each combination of check/unchecked item must be considered. Now the other alternative is or could be that the checkboxed item itself is (or is not) tracked by stock, such that if someone does offer a checkbox item that represents a physical object (assume x number of "free" things to give away or first y people that select this get it) then the checked item could be tracked separately from the rest of the product. Now, there are certainly ever larger possibilities, but it seems that in the confines of the existing attribute system, that this may be the limit of what can be done without redeveloping the attribute system.
Anyways, there are obviously a few things to work out when using checkboxes, again I thought I was close to simply cleaning up code, simplifying some of the actions and adding a few features or at least working some of the code to make that easier to do. And along comes someone who is trying their best to setup their store their way and an issue is found. :P ahh well...