Manufacterurs filters

Is there a way to change the block that has the product filter manufacturer’s from a list to a drop down box?

We have version 2.0.15

Yes you would need to use and tags in /skins//customer/blocks/product_filter.tpl in place of the

    and
  • tags.

oh ok so i would need to know some code then to make that happen?

Yeah, this isn’t built into CS-Cart. You would need to do some customizing.

Another option may be to use Shop by Features mod by Snorocket. This mod shows a dropdown of products for each manufacturer in the main (center) area of the page and on your left side nav you would just put a link to that page.

yeah that would be a pain since we have over 100 diff manuf and over 1000 products on our site.

[quote name=‘whiplash13’]Yes you would need to use and tags in /skins//customer/blocks/product_filter.tpl in place of the

    and
  • tags.[/QUOTE]

    My tech team said that wouldnt work and not sure if they can make a drop/select box for that filter.

[quote name=‘mitbar’]My tech team said that wouldnt work and not sure if they can make a drop/select box for that filter.[/QUOTE]



It does work see here

I don’t know if this will still work, but have you checked out:



[url]http://forum.cs-cart.com/showthread.php?t=12530&highlight=manufacturers+dropdown[/url]



Hope that helps,



Brandon

[quote name=‘brandonvd’]I don’t know if this will still work, but have you checked out:



[URL]http://forum.cs-cart.com/showthread.php?t=12530&highlight=manufacturers+dropdown[/URL]



Hope that helps,



Brandon[/quote]



I’ve update the above thread with the 2.1.1 compatible drop-down menu. Since this is an often requested and hard to find “how to article” I have also included the mod below:



[SIZE=5]2.1.1+ Compatible Drop Down Menu[/SIZE]



OPEN…schemas/block_manager/structure.php





FIND ~line 425 :


'blocks/product_filters_extended.tpl' => array (
'conditions' => array (
'fillings' => array ('filters')
)
)




REPLACE WITH:


'blocks/product_filters_extended.tpl' => array (
'conditions' => array (
'fillings' => array ('filters')
),
),
'blocks/product_filters_pulldown.tpl' => array (
'conditions' => array (
'fillings' => array ('filters')
)
)
PASTE BELOW CODE INTO A NEW FILE NAMED: [COLOR=Red]product_filters_pulldown.tpl[/COLOR]



PLACE FILE IN DIR…/skins/basic/customer/blocks/[COLOR=Red]product_filters_pulldown.tpl[/COLOR]


```php

{* $Id: product_filters_dropdown.tpl 6888 2009-02-06 14:39:39Z snorocket $ }

{
* block-description:pulldown **}



{if $items}

{assign var=“fh” value=$smarty.request.features_hash}

{/if}





- Select Manufacturer -
{foreach from=$items item="filter" name="filters"}
{foreach from=$filter.ranges name="ranges" item="range"}
{$range.range_name|fn_text_placeholders}
{/foreach}
{/foreach}


```[B]

CREATE NEW LANGUAGE VARIABLE:[/B]
Variable= pulldown
Value = Pull Down

[B]*NOTE:[/B] You can manually change [B][COLOR=Red]- Select Manufacturer -[/COLOR][/B] in product_filters_pulldown.tpl

Thank you sno, we are on 2.0.15 will this work there and anything I need to do once uploaded and changed these to get it to work? Sorry for the newb question.

[quote name=‘mitbar’]Thank you sno, we are on 2.0.15 will this work there and anything I need to do once uploaded and changed these to get it to work? Sorry for the newb question.[/quote]

I haven’t tested this on 2.0.15 but it should work if you make the below change to product_filters_pulldown.tpl:



FIND:

```php

{$range.range_name|fn_text_placeholders}
```[B]

REPLACE WITH:[/B]
```php
{$range.range_name|fn_text_placeholders}
```

well i upgraded smoothly to the new 2.1.1 put all this back in. Am i missing or not doing something to have the pull down option show up under extended in the block appearance options?

[quote name=‘mitbar’]well i upgraded smoothly to the new 2.1.1 put all this back in. Am i missing or not doing something to have the pull down option show up under extended in the block appearance options?[/quote]



This is how the block is setup:



I followed directions and it makes the frontend go blank. I also added the language variable but dont see any of the code in Snos post that shows a new language variable. am I missing something? I do get a choice in Appearance type: of extended and product_filters_pulldown.tpl instead of the language variable Pull Down.



I like the idea of this, Any help appreciated.



Thanks

Scott

am I missing something so obvious here in 2.1.1 I want to create a filter of my manufactures as well - but when I goto the filter creation in admin I only have choice of price, instock or free shipping - where in the world would I add all my manufactures?



Thanks all



EDIT - sorry my product feature was disabled.

Gone through all of this and there is no pulldown option available inder apparance type.



Thanks for the great info so far though!



Alfie

Hi Snorocket…



Your method of creating the dropdown menu works great… just one question…



This is the first website where I’ve had to work with Smarty Templates… If I make your changes will they be undone by future CS-Cart updates?



Should I somehow enter your changes into the addons/my_changes folder for the template skin, to ensure they don’t get over written… (as I’ve done with some CS-Cart recommended mods) - or is that not appropriate in this case?



thanks for all your hard work!

Will this mod allow for use of the drop down with other filters besides “Manufacturers”? Is it possible to make the appearance of the drop down conditional, so under “X” number it does not appear and over “X” it does?