Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2008
    Location
    Kent, UK
    Posts
    42
    Plugin Contributions
    0

    Default 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
    TheVDM - Personal site
    Linux Distro UK - Reviving
    Books 'n' DVDs - Work in progress

  2. #2

    Default 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!

  3. #3
    Join Date
    Jul 2008
    Location
    Kent, UK
    Posts
    42
    Plugin Contributions
    0

    Default 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
    TheVDM - Personal site
    Linux Distro UK - Reviving
    Books 'n' DVDs - Work in progress

  4. #4

    Default 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 :)

 

 

Similar Threads

  1. v139h Limit the search default to only search titles and not description
    By amyleew in forum General Questions
    Replies: 6
    Last Post: 31 Dec 2013, 07:22 AM
  2. Changing the search bar title to a simple page title.
    By Skodster in forum General Questions
    Replies: 2
    Last Post: 20 Jul 2012, 08:23 PM
  3. Search and Advanced search not returning results
    By paisore in forum General Questions
    Replies: 6
    Last Post: 4 Nov 2010, 03:43 PM
  4. Replies: 5
    Last Post: 20 Apr 2010, 12:54 PM
  5. How do i get the basic search to only search title?
    By filfish in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Aug 2009, 01:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR