First, I do understand this mod version is still beta and a work in progress. Some of this may be repititious so please excuse my jabbering, but I typed as I went along testing and trying to understand how things work. I have been working with SBA some more and this is the general setup needed for majority of our products.
Some testing attributes
option name
color - dropdown
option values : red, blue
option name
size - dropdown
option values : 10, 12
option name
gender - read only
option values : female, male, unisex
option name
age group - read only
option values : adult, child
The intention is to hide the read-only attributes. They are for google merchant center and don't need to be visible on the page
When stock variants are set up for color and size the read only attributes are being included in the selection proccess on the product info page.
Hoping maybe these scripts might separate them I ran some of the optional scripts found in configuration > products with attributes stock
* add product attributes that are NOT read only
* default SQL - only add the product attributes that are NOT read only and are NOT the new SBA selections
Neither of these scripts did what I was hoping and actually I didn't notice anything different after they were run.
If the read only attributes are at the top of the list the first attribute must be selected in order to continue making selections. If the read only attributes are at the bottom of the list they must still be selected in the process with the last one displaying the quantity in stock.
Initially I had planned on using the flexible attributes module (I tried and got unfavorable results) but found the attribute output code for products setup with SBA is using tables whereas the attributes not set up with SBA the attribute code is output with divs. So it looks like the flexible attributes module is not going to be compatible.
Also if the read only attributes can not be separated from the selection process then hiding them would make it impossible to complete the selection proccess.
What you said here
""In your case, need to build variants that include all attributes together as a single variant, not all selectable product information as a variant and then just add the read only attribute to the product...""
wasn't quite sure what you meant so what I did was set up the variants adding quantities for color and size and left gender and age group as N/A. On thee product info page trying to make selections I get 'out of stock warnings' The product variants add up correctly to the product listing quantity.
I then ran the default script and that allowed me to make the selections.
Also you asked
""When using the display only aspect, is that the only value in that option name? Or is it just one of many values in the option name. If the only value, then it should be setup as a read only option name type. (Meaning the above is incorrectly setup). If say the first of many option values, then I can't say I see how it is being used to obtain the desired result.
""
While the read only options have several values set up only one value is displayed on the product info page.
So one product may have gender female another product may have gender male. But on any given page it would be only one value displayed.
Bookmarks