Author Topic: Search .... not dispearing in VM-Search in Shop  (Read 1092 times)


  • Jr. Member
  • **
  • Posts: 93
Search .... not dispearing in VM-Search in Shop
« 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


  • Global Moderator
  • Full Member
  • *
  • Posts: 534
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: Search .... not dispearing in VM-Search in Shop
« Reply #1 on: May 31, 2018, 11:52:44 am »

/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.

Stefan Schumacher - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.