News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Dropdown box problem with Children list in vm2.0.12f

Started by ptrouw, November 02, 2012, 05:12:04 AM

Previous topic - Next topic

ptrouw

Hi,
I have 3 children product in a dropdown box. When I am selecting the parent, the dropdown box is showing the first child. But you are unable to select the first one, you have to select the second one to change the price. What you want for a customer is just clicking on the first one in the box and changing the price accordingly.

A bigger problem is selecting the last client product in the box, this rewrites the dropdown list somehow, losing all other children products and resizing the dropdown list box to a few pixels, having nothing to display of course.

Dropdown list HTML code when selecting the parent:
<select id="field0custom_value" onchange="window.top.location.href=this.options[this.selectedIndex].value" class="inputbox" size="1" name="field[0][custom_value]">
   <option value="/J2.5.4/index.php/component/virtuemart/leidingklem/leidingklem-6-mm-detail?Itemid=101">Leidingklem   6 mm</option>
   <option value="/J2.5.4/index.php/component/virtuemart/leidingklem/leidingklem-10-mm-detail?Itemid=101">Leidingklem   10 mm</option>
   <option value="/J2.5.4/index.php/component/virtuemart/leidingklem/leidingklem-8-mm-detail?Itemid=101">Leidingklem   8 mm</option>
</select>

The code after selecting the last product in the dropdown list.
<select id="field0custom_value" onchange="window.top.location.href=this.options[this.selectedIndex].value" class="inputbox" size="1" name="field[0][custom_value]">
</select>

Anybody having the same experience, or perhaps a workaround?