Results 1 to 8 of 8
  1. #1
    Join Date
    May 2009
    Posts
    416
    Plugin Contributions
    0

    Default Remove 'Search by Date Added' field from advanced search page?

    How can I remove 'Search by Date Added' field from the advanced search page?

    Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,314
    Plugin Contributions
    3

    Default Re: Remove 'Search by Date Added' field from advanced search page?

    Looks like if you remove (or comment out) lines 58-69 in tpl_advanced_search_default.php and save it back to your override folder it will disappear.

  3. #3
    Join Date
    May 2009
    Posts
    416
    Plugin Contributions
    0

    Default Re: Remove 'Search by Date Added' field from advanced search page?

    Bravo stevesh, bravo

  4. #4
    Join Date
    May 2009
    Posts
    416
    Plugin Contributions
    0

    Default Re: Remove 'Search by Date Added' field from advanced search page?

    Quote Originally Posted by stevesh View Post
    Looks like if you remove (or comment out) lines 58-69 in tpl_advanced_search_default.php and save it back to your override folder it will disappear.
    Just found a little problem with your suggestion stevesh, for some reason IE8 still shows an empty box outline with no title (@ very bottom of attatched image) Every other browser is fine. Any ideas?

    Thanks
    Attached Images Attached Images  

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,314
    Plugin Contributions
    3

    Default Re: Remove 'Search by Date Added' field from advanced search page?

    Strange. I'm not seeing the box in any browser on my test site. Have you tried clearing the IE cache?

  6. #6
    Join Date
    May 2009
    Posts
    416
    Plugin Contributions
    0

    Default Re: Remove 'Search by Date Added' field from advanced search page?

    Yes I completely cleared everything in IE before viewing. Here's the last few lines on my new tpl_advanced_search_default.php override file, maybe you could just have a quick check to see If I have done anything wrong:

    PHP Code:
    </fieldset>
    <fieldset class="floatLeft">
        <legend><?php echo ENTRY_PRICE_TO?></legend>
        <?php echo zen_draw_input_field('pto'$sData['pto']); ?>
    </fieldset>
    </fieldset> 
    <?php
    /**
    <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>
     */
    ?> 
    <br class="clearBoth" />


    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEARCHBUTTON_SEARCH_ALT); ?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACKBUTTON_BACK_ALT) . '</a>'?></div>

    </form>
    </div>
    I would post a link but the sites only local ATM.
    It's probably something simple.
    Thanks

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,314
    Plugin Contributions
    3

    Default Re: Remove 'Search by Date Added' field from advanced search page?

    Only difference I can see is that I also removed that <br class="clearBoth" /> at the bottom. With the override system, I usually remove rather than comment out.

    Here's mine:

    Code:
    fieldset class="floatingBox back">
    <legend><?php echo ENTRY_PRICE_RANGE; ?></legend>
    <fieldset class="floatLeft">
        <legend><?php echo ENTRY_PRICE_FROM; ?></legend>
        <?php echo zen_draw_input_field('pfrom', $sData['pfrom']); ?>
    </fieldset>
    <fieldset class="floatLeft">
        <legend><?php echo ENTRY_PRICE_TO; ?></legend>
        <?php echo zen_draw_input_field('pto', $sData['pto']); ?>
    </fieldset>
    </fieldset> 
    
    
    
    
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEARCH, BUTTON_SEARCH_ALT); ?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
    
    </form>
    </div>

  8. #8
    Join Date
    May 2009
    Posts
    416
    Plugin Contributions
    0

    Default Re: Remove 'Search by Date Added' field from advanced search page?

    By the way I just realised I uploaded the wrong screenshot image in my first post, ignore it. Yes completely removing it from the override file worked, thanks for the tip

 

 

Similar Threads

  1. Replies: 1
    Last Post: 5 Sep 2014, 01:05 PM
  2. Remove 'Search Help [?]' from advanced search
    By boy1da in forum General Questions
    Replies: 0
    Last Post: 8 Nov 2010, 09:53 PM
  3. fix the advanced search date from field
    By importprijs.nl in forum General Questions
    Replies: 4
    Last Post: 22 Oct 2009, 11:37 AM

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