VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: spacialek on December 30, 2011, 23:23:08 PM

Title: Problem adding values in shopper fields dropdown
Post by: spacialek on December 30, 2011, 23:23:08 PM
When trying to add new values to a dropdown (single values) element (in the shopper fields), I can enter a new value, but it always uses the first item title and the field isn't editable. So for example, I tried adding "Mr." "Mme" and "Mlle", the values are ok, but the displayed option in the dropdown is always "Mr."...

I tried both on Joomla 1.5 + VirtueMart 2 and Joomla 1.7 + VirtueMart 2 and a Joomla 1.5 + VirtueMart clean install

Thanks



[attachment cleanup by admin]
Title: Re: Problem adding values in shopper fields dropdown
Post by: johnwills on January 05, 2012, 15:05:00 PM
I'm having the same problem also.

Joomla 1.5 + Vmart 2.0.0

[attachment cleanup by admin]
Title: Re: Problem adding values in shopper fields dropdown
Post by: Studio 42 on January 05, 2012, 20:58:21 PM
The old javascript is a little buggy, i rewrite it ;)
Title: Re: Problem adding values in shopper fields dropdown
Post by: Zanza on January 22, 2012, 17:08:47 PM
Any workaround or something else to get it working?
Title: Re: Problem adding values in shopper fields dropdown
Post by: lightmedia on January 31, 2012, 00:23:31 AM
I am also having the same problem: VM 2.0 and Joomla 1.5

In addition, I can't change the fields order for the frontend.

Anyone's help would be much appreciated.

Thanks,
Title: Re: Problem adding values in shopper fields dropdown
Post by: Fafle on February 14, 2012, 12:38:20 PM
Hi I have the same problem, VM version 2.0.0, Joomla 1.7.
I solved changing /administrator/components/com_virtuemart/views/userfields/tmpl/edit.php on line 179 with:

row = '<tr><td><input type="text" name="vNames['+nr+']" value="Mr"></td><td><input type="text" name="vValues['+nr+']" value="Mr"></td></tr>';

It seems that works for my needs.

For the ordering problem i change the fields order number directly in the table "virtuemart_userfields" of the database.
Hope it can help

Title: Re: Problem adding values in shopper fields dropdown
Post by: paulhazell on February 15, 2012, 10:50:02 AM
Is there any news on this bug as i am having the same problems
Title: Re: Problem adding values in shopper fields dropdown
Post by: chongkan on February 28, 2012, 09:10:38 AM
Quote from: Fafle on February 14, 2012, 12:38:20 PM
Hi I have the same problem, VM version 2.0.0, Joomla 1.7.
I solved changing /administrator/components/com_virtuemart/views/userfields/tmpl/edit.php on line 179 with:

row = '<tr><td><input type="text" name="vNames['+nr+']" value="Mr"></td><td><input type="text" name="vValues['+nr+']" value="Mr"></td></tr>';


It seems that works for my needs.

For the ordering problem i change the fields order number directly in the table "virtuemart_userfields" of the database.
Hope it can help





I changed the above line (179) to:


row = '<tr><td><input type="text" readonly="readonly" class="readonly" name="vNames['+nr+']" value="'+ jQuery('input[name="vNames[0]"]').val()+'"></td><td><input type="text" name="vValues['+nr+']" value="'+ jQuery('input[name="vValues[0]"]').val()+'"></td></tr>';