Hi, I have created a set of attribute radio boxes for a product, intending a simple one colour selection from a list.
only one colour is set as 'selected', in the attributes manager itself.
BUT.. they are all 'on' selected on the product display, and I can see the reason is ..the code name of each button is different,
.
What did I do wrong?
The zencart code is adding the 'id' **number** of each option name shown in the attributes, e,g name="id[2]"
where the id of the attribute name is 2.
but i can't create a set of attribute names with the same name id number [obviously?]
so is this a bug, or am I not creating a set of radio buttons properly in the attributes names / values?
code on the product page is.. [note i don't display the attribute name text]
<div class="wrapperAttribsOptions">
<!-- h4 class="optionName back" --><!-- /h4 -->
<div class="back"><input type="radio" name="id[2]" value="2" checked="checked" id="attrib-2-2" /><label class="attribsRadioButton zero" for="attrib-2-2">Blue</label><br />
</div>
<br class="clearBoth" />
</div>
<!-- br class="clearBoth" / -->
<div class="wrapperAttribsOptions">
<!-- h4 class="optionName back" --><!-- /h4 -->
<div class="back"><input type="radio" name="id[8]" value="8" checked="checked" id="attrib-8-8" /><label class="attribsRadioButton zero" for="attrib-8-8">Green</label><br />
</div>
<br class="clearBoth" />
</div>
<!-- br class="clearBoth" / -->
<div class="wrapperAttribsOptions">
<!-- h4 class="optionName back" --><!-- /h4 -->
<div class="back"><input type="radio" name="id[6]" value="4" checked="checked" id="attrib-6-4" /><label class="attribsRadioButton zero" for="attrib-6-4">Brown</label><br />
</div>
<br class="clearBoth" />
</div>
.
Bookmarks