News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Search .... not dispearing in VM-Search in Shop

Started by bmw2182, May 30, 2018, 22:10:29 PM

Previous topic - Next topic

bmw2182

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

#1
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

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