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.
Views: 2,375
Zen Follower
How do I remove (or comment-out) Entry_Price_Range and Entry_Date_Range boxes from the Advanced Search Page?
Thanks.
Totally Zenned
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.
Zen Follower
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.
Totally Zenned
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:
Zen Follower
Thanks alot for your help. I greatly appreciate your time and expertise.
Fields marked required must be completed.
Tell staff why this post should be reviewed.