VirtueMart Forum

VirtueMart 2 + 3 => Frontend Modules => Topic started by: bmw2182 on May 30, 2018, 22:10:29 pm

Title: Search .... not dispearing in VM-Search in Shop
Post by: bmw2182 on May 30, 2018, 22:10:29 pm
I have Search... in my search box and it always use to disappear when you put your cursor in the box and allow you to type what you want to search.  Now the word remains there and the viewer has to backspace over it to remove it before typing in their item to search for.  Is there anyway to fix this?

Running Joomla 3.8.8 & Virtuemart 3.2.14

The website is https://musicalinstrumentcity.com/index.php
Title: Re: Search .... not dispearing in VM-Search in Shop
Post by: StefanSTS on May 31, 2018, 11:52:44 am
Hello,

/modules/mod_virtuemart_search/tpl/default.php,  this line:

   <?php $output = '<input name="keyword" id="mod_virtuemart_search" maxlength="'.$maxlength.'" placeholder="'.$button_text.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'" />';

change to:

   <?php $output = '<input name="keyword" id="mod_virtuemart_search" maxlength="'.$maxlength.'" placeholder="'.$text.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" />';

This time, do that in VirtueMart Core files, not in an override. With the next VM version, the files will be overridden by the new files that contain the fix and give you the option to choose a value for the attribute placeholder.

Regards
Stefan