You are here:  » merchant: and Category:


merchant: and Category:

Submitted by wesse249 on Fri, 2015-03-20 19:42 in

Hello,

I find a lot of answers but no one is a good solution for me.

I'd like to remove:

merchant:
Category:
Brand:

in the:

searchfield
title

Thank you

Submitted by support on Sat, 2015-03-21 09:42

Hello wesse,

The simplest way is as follows - in search.php look for the following code at line 399 (13/03A):

  $header["title"] = $q;

...and REPLACE with:

  $header["title"] = str_replace(array("merchant:","category:","brand:",":"),"",$q);

And for the search box, in html/searchform.php, look for where the default value for the text input is created by this code:

value='<?php print (isset($q)?$q:""); ?>'

...and REPLACE with:

value='<?php print (isset($q)?str_replace(array("merchant:","category:","brand:",":"),"",$q):""); ?>'

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by wesse249 on Sat, 2015-03-21 19:54

Thank you works great.

Only i have a : after the brand names. How can i remove this one?

Thanks, Jan roel

Submitted by support on Sun, 2015-03-22 10:42

Hello Jan,

I've modified the two replacements above to include removal of the ending ":" from the values also...

Cheers,
David.
--
PriceTapestry.com