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
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
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
and comment it out, like this:<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div>
//*<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div>*/
Happy Zenning!
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
You're very welcome, I hope it works for you. That's how I did it and it worked fine for me :)
Bookmarks