News:

Support the VirtueMart project and become a member

Main Menu

Custom fields cannot be selected\deselected

Started by qx, May 13, 2012, 11:39:47 AM

Previous topic - Next topic

qx

When adding custom fields cart attribute set) to my product, a radiobutton appears before them.

I would expect this to be a checkbox, which I can select\deselect (assuming that in this case the product price updates).

I am using a third party template, in the generated html I see the following:


<span class="yagVmFlyProdFieldTitle">Add batteries
       <span class="hasTip" title="Add Batteries"><img src="/media/system/images/tooltip.png" alt="Tooltip"  /></span>
</span>

<div class="yagVmFlyProdFieldRight">
<span class="yagVmFlyProdFieldDisplay"><input id="45" checked="checked" type="radio" value="45" name="customPrice[0][14]" /><label for="45"> /> 20,00 €</label></span>
<span class="yagVmFlyProdFieldDesc">
                        </span>
</div>


Am I doing something wrong here ? Any help is greatly appreciated.

edit: not sure if my question is clear: what I just want is an optional item in the product that can be chosen. If chosen, the price is added to the totalprice. I do not want a dropdown list.

qx

no answer yet, seems this should be basic functionality ?

Contacted creator of the template, who referred me to the virtuemart forum as the problem is not in the template.

qx

anyone ? This seems to be one of the main applications of a custom field ?