Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing the 'Advanced Search' and changing basic search to title only

Removing the 'Advanced Search' and changing basic search to title only

Locked

Views: 5,291

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Aug 2008, 10:27 AM
#1
val_ent avatar

val_ent

New Zenner

Join Date:
Jul 2008
Location:
Kent, UK
Posts:
42
Plugin Contributions:
0

Removing the 'Advanced Search' and changing basic search to title only

Hi, I would like to know how to remove the advanced search function from zencart (as my site dosent really warrant it) and I would also like to change the basic search box on the side to search the title only.

Regards
Jym

23 Aug 2008, 4:20 PM
#2
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Removing the 'Advanced Search' and changing basic search to title only

Log in to your admin, point to Tools-->Layout Boxes Controller.

Locate the sideboxes/search.php and click on it to edit. Set both of the right/left column and center column statuses to "off". That will get rid of the advanced search.

To move the basic search to a side bar, in the Layout Boxes Controller panel, locate sideboxes/search_header.php & click to edit. Set the center search column to off, and the right/left search column to "on". Select whether you want it on the right or left. Use the sort order numbers to determine where it appears on the page.

If, after you do all that, the basic search box insists on showing up in the header (as it did with mine), navigate to the following folder:

/ includes / templates / YOUR_CUSTOM_TEMPLATE / common /

and edit the tpl_header.php file.

If you don't have this in YOUR_CUSTOM_TEMPLATE, be sure to make a copy from / includes / templates / template_default / common /
before you begin.

Once inside the tpl_header.php file, find the following text

<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> <br class="clearBoth" /> </div>

and comment it out, like this:

//*<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />

</div>*/

Happy Zenning!

24 Aug 2008, 9:46 AM
#3
val_ent avatar

val_ent

New Zenner

Join Date:
Jul 2008
Location:
Kent, UK
Posts:
42
Plugin Contributions:
0

Re: Removing the 'Advanced Search' and changing basic search to title only

Hi ScriptJunkie, many thanks for the reply, I'm off to work in a minute so will give it a go when I get back tonight and will let you know how I get on.

Regards
Jym

30 Aug 2008, 10:39 PM
#4
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Removing the 'Advanced Search' and changing basic search to title only

You're very welcome, I hope it works for you. That's how I did it and it worked fine for me :)