Zen Follower
- Join Date:
- Dec 2010
- Posts:
- 248
- Plugin Contributions:
- 0
Remove manufacturer from advanced search?
Hi there,
Can you please tell me how to remove "manufacturer" from advanced search?
Thanks,
Maxy
Views: 1,706
Zen Follower
Hi there,
Can you please tell me how to remove "manufacturer" from advanced search?
Thanks,
Maxy
Zen Follower
Anyone?
Oba-san
You would need to customize the tpl_advanced_search_default.php using your templates and overrides and comment out the code for:
<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)), PRODUCTS_MANUFACTURERS_STATUS), $sData['manufacturers_id']); ?>
<br class="clearBoth" />
</fieldset>
<br class="clearBoth" />
Zen Follower
Hi Linda,
Sorry to be so dense but how do I comment that out?
Do i need to comment out that code on all tpl_advanced_search_default.php files?
Thanks again
Maxy
Oba-san
You can comment that out by changing it to read:
<?php /* ?>
<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)), PRODUCTS_MANUFACTURERS_STATUS), $sData['manufacturers_id']); ?>
<br class="clearBoth" />
</fieldset>
<br class="clearBoth" />
<?php */ ?>
Zen Follower
Oba-san
Sorry, I don't really do design work ...
You would need to redesign your template in a way that is pleasing to your eye ...
New Zenner
maxy007:
Now I have an uneven advanced search page.
To fix that issue, in that same file (tpl_advanced_serach_default.php), you can make the following three underlined changes in the three remaining fieldsets:
<fieldset class="floatingBox back">
<legend><?php echo ENTRY_CATEGORIES; ?></legend>
<fieldset class="floatingBox forward">
<legend><?php echo ENTRY_PRICE_RANGE; ?></legend>
``````
<fieldset class="floatingBox back">
<legend><?php echo ENTRY_DATE_RANGE; ?></legend>
```
I realize some might already have those settings, but if they are all set like that, then it should look how it's supposed to again.
Zen Follower
<fieldset class="floatingBox back"> <legend><?php echo ENTRY_CATEGORIES; ?></legend> `````` <fieldset class="floatingBox forward"> <legend><?php echo ENTRY_PRICE_RANGE; ?></legend> `````` <fieldset class="floatingBox back"> <legend><?php echo ENTRY_DATE_RANGE; ?></legend> ```I realize some might already have those settings, but if they are all set like that, then it should look how it's supposed to again.sgtzackallen:
To fix that issue, in that same file (tpl_advanced_serach_default.php), you can make the following three underlined changes in the three remaining fieldsets:
Thank you!!
I'll try that once my site gets fixed from installing the SEO mod that took down my site :(
Zen Follower
Hi sgtzackallen,
Where do I find the tpl_advanced_serach_default.php file?
Oba-san
That file is will all of the other template files in the:
/includes/templates/template_default/templates
and should be copied to your templates and overrides directory before you make your changes:
/includes/templates/your_template_dir/templates
NOTE: where lost and not knowing where to find a file, text, code etc. you can go to your Tools ... Developers Tool Kit ... and in the bottom input box you can enter:
tpl_advanced_search_default.php
or enter:
tpl_advanced_search_default
and select Catalog and click Search ...
NOTE: you have a typo on the spelling of:
tpl_advanced_serach_default.php
Zen Follower
Thanks Ajeh,
I missed the typo and completely forgot about the Developers Tool Kit search options!!!
Thank you again
Maxy
Zen Follower
Thank you!!
That worked.
Cheers,
Maxy
New Zenner
Just I just clarify one point?
Should the file be copied to my 'theme' template and changed there? Or copy there but change it in the default template file area?
I made the suggested change to the file in my 'theme' files but when I go to the advanced search page on my site the page shows no fields at all! (so changed it back and it is back to normal).
Phil
Tell staff why this post should be reviewed.