Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove Entry_Price_Range on Advanced Search Page

Remove Entry_Price_Range on Advanced Search Page

Locked

Views: 2,375

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
28 Aug 2006, 5:22 PM
#1
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Remove Entry_Price_Range on Advanced Search Page

How do I remove (or comment-out) Entry_Price_Range and Entry_Date_Range boxes from the Advanced Search Page?

Thanks.

28 Aug 2006, 7:31 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Remove Entry_Price_Range on Advanced Search Page

You are jumping on your horse and riding madly off in all directions, aren't you?:D

Get familiar with the developer's toolkit under tools in the admin control panel. Enter a variable or constant in the bottom left block, select admin and cart, and click on the search button.

You'll find this invaluable.

29 Aug 2006, 9:09 PM
#3
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: Remove Entry_Price_Range on Advanced Search Page

Thanks for your reply.

I entered "Entry_Price_Range" into the developer's toolkit, where you instucted.

This is what appeared.

"/home/public_html/catalog/includes/languages/classicx/english/advanced_search.php

Line #21 : define('ENTRY_PRICE_RANGE', 'Search by Price Range');

/home/public_html/catalog/includes/languages/english/advanced_search.php

Line #21 : define('ENTRY_PRICE_RANGE', 'Search by Price Range');

/home/public_html/catalog/includes/templates/template_default/templates/tpl_advanced_search_default.php
"
Line #46 : <legend><?php echo ENTRY_PRICE_RANGE; ?></legend>"

Now, to comment-out these lines, I tried a few things unsuccessfully.
I tried commenting-out these lines with this <!-- --> and then tried this // and then this /* */.

Obviously, I'm not doing something correctly.

Any assistance would be greatly appreciated. Thanks.

29 Aug 2006, 10:07 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Remove Entry_Price_Range on Advanced Search Page

In the includes\templates\template_default\templates\tpl_advamced+search_defaut.php, around line 46, change> <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'); ?> </fieldset> <fieldset class="floatLeft"> <legend><?php echo ENTRY_PRICE_TO; ?></legend> <?php echo zen_draw_input_field('pto'); ?> </fieldset> </fieldset>> <!--- <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'); */?> </fieldset> <fieldset class="floatLeft"> <legend><?php /**echo ENTRY_PRICE_TO; */?></legend> <?php /**echo zen_draw_input_field('pto'); */?> </fieldset> </fieldset> --->Be sure to save the file into you override directory to not lose it later. After this storm passes, we'll look at alignment.:shocking:
29 Aug 2006, 10:46 PM
#5
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: Remove Entry_Price_Range on Advanced Search Page

Thanks alot for your help. I greatly appreciate your time and expertise.