Thread: advance search

Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2006
    Location
    U.K.
    Posts
    162
    Plugin Contributions
    0

    Default advance search

    On the advanced search page is it possible to remove the box
    Limit to Manufacturer and the box Search by date added.
    Stephen.
    - ZenCart v:1.3.9h - Template: Simply_Kerrin- Column layout grid. v:1.3.6 - big royal mail. v:2.3.4 - stock by attributes 4.7 - Logo Sidebox - SitemapXML v2s.

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: advance search

    Unfortunately, this isn't easy to do with the stylesheet. You are going to have to edit a file called tpl_advanced_search_default.php wich is found in (includes/templates/yourtemplate/templates/). If you do not have that file in that place then you need to create it as an override by copying it from the default template.

    It is pretty easy to understand. You are looking for blocks of code to delete. The first one looks like this:

    Code:
    <fieldset class="floatingBox forward">
        <legend><?php echo ENTRY_MANUFACTURERS; ?></legend>
        <?php echo zen_draw_pull_down_menu('manufacturers_id', zen_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS))), $sData['manufacturers_id']); ?>
    <br class="clearBoth" />
    </fieldset>
    The next one looks like this:

    Code:
    <fieldset class="floatingBox forward"> 
    <legend><?php echo ENTRY_DATE_RANGE; ?></legend>
    <fieldset class="floatLeft">
        <legend><?php echo ENTRY_DATE_FROM; ?></legend>
        <?php echo zen_draw_input_field('dfrom', $sData['dfrom'], 'onfocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?>
    </fieldset> 
    <fieldset class="floatLeft">
        <legend><?php echo ENTRY_DATE_TO; ?></legend>
        <?php echo zen_draw_input_field('dto', $sData['dto'], 'onfocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?>
    </fieldset> 
    </fieldset>
    back up the file somewhere safe!!!!

    then delete both chunks and upload the new version.

    You should be done. But you may want to fiddle with the layout after that....

  3. #3
    Join Date
    Sep 2006
    Location
    U.K.
    Posts
    162
    Plugin Contributions
    0

    Default Re: advance search

    Thanks Nick that worked well
    Stephen.
    - ZenCart v:1.3.9h - Template: Simply_Kerrin- Column layout grid. v:1.3.6 - big royal mail. v:2.3.4 - stock by attributes 4.7 - Logo Sidebox - SitemapXML v2s.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 28 Jun 2012, 12:14 PM
  2. Can advance search able to search into my EZ pages?
    By saitomedia in forum General Questions
    Replies: 4
    Last Post: 20 Feb 2010, 01:00 PM
  3. advance search
    By ronron in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Mar 2009, 04:06 PM
  4. Add Advance Search Link Under Search Bar!
    By MBSJEWELRY in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Oct 2006, 07:41 AM
  5. advance search
    By lucianman in forum General Questions
    Replies: 3
    Last Post: 30 Jun 2006, 08:59 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