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

bmw2182

  • Jr. Member
  • **
  • Posts: 85
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 https://musicalinstrumentcity.com/index.php

StefanSTS

  • Global Moderator
  • Jr. Member
  • *
  • Posts: 120
  • 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 »
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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts