VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: wicketts on March 02, 2016, 12:44:09 PM

Title: Unusual Search Request
Post by: wicketts on March 02, 2016, 12:44:09 PM
Hello everyone,

I've just been asked what perhaps seems a bit strange but bear with me...

A friend of mine runs an online jewellery shop and he would like to adjust the search in some way - currently using the 'VirtueMart Search Product' module.

The problem he has is that some customers are searching for 'rings' but when they do of course a list of 'rings' and 'earrings' are returned. He was wondering if the search can be adjusted in anyway so that only 'rings' are returned as results.

He's basically trying to make it as easy as possible for his customers, some of whom are not the brightest   :0)

Many thanks for your help.

Kind regards


James

Joomla: 3.4.8
Virtuemart: 3.0.12
Title: Re: Unusual Search Request
Post by: GJC Web Design on March 02, 2016, 13:18:24 PM
have a look in the products.php model

basically you want the search term to be rings%  .. not %rings%

there is a plugin call for the search query  but have never tried it .. I just hack in this case
Title: Re: Unusual Search Request
Post by: Ghost on March 02, 2016, 13:37:41 PM
Have you considered adding a category filter like here http://demo.joomshaper.com/?template=megadeal or here http://demo.breakdesigns.net/ ?