VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: gsivaprabu on November 28, 2014, 08:46:28 AM

Title: How can i hide the "Choose a product variant first" in drop down menu in custom
Post by: gsivaprabu on November 28, 2014, 08:46:28 AM
How can i hide the "Choose a product variant first" in drop down menu in custom field?

Refer:- (https://lh4.googleusercontent.com/-248aZeoYSEI/VHgY_yieP7I/AAAAAAAACow/t_UdPBPx-tg/w506-h306/productVariantList.png)

Custom Field Type: Generic child variant



Version:-

Joomla! 2.5.27
VirtueMart 2.6.12.2

regards,
@gsivaprabu

[attachment cleanup by admin]
Title: Re: How can i hide the "Choose a product variant first" in drop down menu in custom
Post by: jenkinhill on November 28, 2014, 15:02:27 PM
@gsivaprabu it looks like you are using a commercial template override, so the simplest solution to removing the text is to use a language override. You can either change the text to an empty string, or (as I have done for a client) change the text to read "Select:" - or whatever suits you.
http://forum.virtuemart.net/index.php?topic=113895.0
Title: Re: How can i hide the "Choose a product variant first" in drop down menu in custom
Post by: GJC Web Design on November 29, 2014, 11:15:01 AM
Have also seen on some templates this inserted by JS

e.g.


jQuery('select#field0custom_value ').prepend('<option selected=\"selected\" value=\"#\">Choose a product variant first</option>');
});


check your template