Zen Cart Logo
Forums / General Questions / Remove manufacturer from advanced search?

Remove manufacturer from advanced search?

Views: 1,706

Results 1 to 14 of 14
11 Jan 2011, 7:53 PM
#1
maxy007 avatar

maxy007

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

13 Jan 2011, 4:15 AM
#2
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Remove manufacturer from advanced search?

Anyone?

13 Jan 2011, 5:58 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Remove manufacturer from advanced search?

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" />
14 Jan 2011, 1:23 AM
#4
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Remove manufacturer from advanced search?

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

14 Jan 2011, 2:03 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Remove manufacturer from advanced search?

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 */ ?>
14 Jan 2011, 10:02 AM
#6
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Remove manufacturer from advanced search?

Hi Linda,
I've finally removed the manufacturer from advanced search.

Now I have an uneven advanced search page.

How do i remove search by date added?

14 Jan 2011, 2:33 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Remove manufacturer from advanced search?

Sorry, I don't really do design work ...

You would need to redesign your template in a way that is pleasing to your eye ...

22 Jan 2011, 3:37 AM
#8
sgtzackallen avatar

sgtzackallen

New Zenner

Join Date:
Jan 2011
Posts:
1
Plugin Contributions:
0

Re: Remove manufacturer from advanced search?

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.

22 Jan 2011, 6:46 AM
#9
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Remove manufacturer from advanced search?

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:

<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.

Thank you!!
I'll try that once my site gets fixed from installing the SEO mod that took down my site :(

22 Jan 2011, 9:06 PM
#10
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Remove manufacturer from advanced search?

Hi sgtzackallen,
Where do I find the tpl_advanced_serach_default.php file?

22 Jan 2011, 11:49 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Remove manufacturer from advanced search?

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

22 Jan 2011, 11:53 PM
#12
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Remove manufacturer from advanced search?

Thanks Ajeh,
I missed the typo and completely forgot about the Developers Tool Kit search options!!!

Thank you again

Maxy

23 Jan 2011, 2:56 AM
#13
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Remove manufacturer from advanced search?

Thank you!!

That worked.

Cheers,

Maxy

15 Feb 2012, 2:19 AM
#14
phiblack avatar

phiblack

New Zenner

Join Date:
Jun 2009
Posts:
37
Plugin Contributions:
0

Re: Remove manufacturer from advanced search?

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