Zen Cart Logo
Forums / General Questions / Remove 'Search by Date Added' field from advanced search page?

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

Locked

Views: 3,965

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
22 Jan 2010, 8:22 PM
#1
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

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.

23 Jan 2010, 10:58 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

23 Jan 2010, 1:54 PM
#3
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

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

Bravo stevesh, bravo :smile:

24 Jan 2010, 1:34 PM
#4
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

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

stevesh:

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 :smile:

24 Jan 2010, 1:42 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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?

24 Jan 2010, 1:55 PM
#6
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

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:

</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_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>

I would post a link but the sites only local ATM.
It's probably something simple.
Thanks :smile:

24 Jan 2010, 2:22 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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:

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>
24 Jan 2010, 2:34 PM
#8
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

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 :smile: