Using radio selection in VM 2.0.6

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Using radio selection in VM 2.0.6

Postby admin » Thu May 17, 2012 8:40 pm

We found another bug when using VM up to 2.0.6 and checkboxes in any type of registration with OPC enabled OR disabled. This is a general VM 2 bug.

OPC fixes these bugs for you when the backend configuration is entered and the bug is detected.

File:
\administrator\components\com_virtuemart\models\userfields.php
line: 813
Code: Select all
$_return['fields'][$_fld->name]['formcode'] =  JHTML::_('select.radiolist', $_values, $_prefix.$_fld->name, $_attribs, $_selected, 'fieldvalue', 'fieldtitle');


the proper syntax for joomla 1.5.x to 2.5.x is:
Code: Select all
$_return['fields'][$_fld->name]['formcode'] =  JHTML::_('select.radiolist', $_values, $_prefix.$_fld->name, $_attribs, 'fieldvalue', 'fieldtitle', $_selected);


This bug is automatically fixed by OPC from version 2.0.55

Best Regards,
Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Return to One Page Checkout for Virtuemart 2

cron