maxpayne381:
Thanks for your reply. The read only attributes work fine until I add SBA then it disappear. I want to have read only as our products have only one color each. The attribute should be there so it can be working with dynamic filters on listing page.
The aim is to have attribute which doesnt have to be selected but can be picked by dynamic filter. Any ideas how to do this?
We can have color in selection box but would be better if its selected... now it says First Select Color.
One more issue I have is to show Out of stock... If I select show quantities the Out of Stock works fine = is not able to select but I can see the quantities per other attributes which is not good. If I turn this off then I cannot see the stock but Out of Stock is there and able to select and put into shopping bag. Is there any fix or setting for this or do I need to find and change in the code?
So let me try to explain how all this fits together... Stock quantities for a multiple attribute combination can not be shown without using something like javascript at least if a change in one selection has an effect on the other(s)... It is possible to show each/all attributes without using the dynamic dropdown option(s); however, then the attribute quantity will not be shown if the item is considered to have multiple attributes... The dynamic dropdown code has not yet been written to properly incorporate read only attributes.. At this time it expects one to "select" the read only attribute which isn't selectable. The other thing not discussed here is how are the variants entered... There are a number of variables to the setup including the discussion of the above in regards to out-of-stock, quantities displayed, etc... It is some of this complexity that I see is one reason it has not yet been incorporated into ZC as a base feature...
So, then there is the issue of the read-only attribute... Have you tried swapping the sort order of them for one? Also there is a setting at least in ZC 1.5.4 associated with how read-only attributes are treated when adding to the cart, haven't tried it yet, but supposedly it would treat the read-only attribute as a hard item against the stock check... Another thought is that if there is only one color to be "chosen" then make it a dropdown attribute by itself (meaning could make it default, and have no other option value in the list. It will/would force selection when using dynamic dropdowns and sure be an "extra" step, but it would be work under the current arrangement of the plugin.
There is a goal and work being done to incorporate read-only attributes to be used in any/all ways that seem to be applicable; however, this is being supported on an as able basis at this time with other projects having a priority based on commitment...
You might be able to make changes to the includes/templates/YOUR_TEMPLATE/templates/tpl_modules_attributes.php file, or includes/modules/YOUR_TEMPLATE/attributes.php or one of the dynamic dropdown class files in includes/classes with the filename format of pad__dropdown.php or radioset...