Thank you very much for the code! Now I have perfectly manageable layered navigations.
One problem though and I’m wondering if anyone else has experienced the same thing…
I have two websites with one store each and then two storeviews per store (for languages). My websites are basically the same but with different pricing and shipping methods, they share the same categories, attributes and products.
Now, the thing is that my layered navigation shows up just like it should on my default website but on my “second” website I can only see a few of the attributes, there seems to be no logic in what’s showing and what is not.
I was thinking that the url to my second website is different and so maybe the path to the attributes are not correct but then I shouldn’t see any attributes at all?! And all other connections are functioning like they should, it’s just the layered navigation that is not showing all it’s got.
This is quite strange (and annoying) - if anyone has any idea as to how I could solve this you would make me very very happy!
EDIT: Ok… So after an hour of looking and searching I realize there is a special cash for layered navigation. Ater refreshing that it works just like it should! Now I’m very very happy!
Just a thought (from someone not very familiar with php) - would it be possible to change the text on the drop-downs “Please select” when on a certain store view. I would like to have one more language and I’m thinking that it should be doable with an if-sentence or something… But as I said - I’m not too good with these things.
This is excellent, just what I was looking for. Do you know how this could be modified slightly so that the headers (e.g. size, colour etc) are given in the dropdown instead, like here:
Like replace “Please select” with something like this <?php echo $this->__('Please select') ?> and define it in the language file or anything similar...?
This is a brill script, I had to add brand logos to it. The logos went into /media/catalog/logos and have the same names but with underscores. They is also gifs.
case 'Manufacturer': _displayBrands($this,$displayitemcount); break;
All works, however, I have not been able to align the logos with the text so they are all on the same center line. I have a single entry in the CSS for the above, ‘BrandNav’:
.BrandNav { clear: both; vertical-align: middle }
Also tried putting some inline code, but no joy in getting the horizontal alignment exactly how I wants it. Will do for the job in hand, but can some CSS wizz do it right?
Wondering if it would be possible to shoe the Label of the attribute instead of the Name? The Name is used at the backend, so it’s not necessarily the same we’d use in Front-end (especially not with more than one language). I’ve found $this->__($_filter->getName()) in view.phtml, but I’m not able to use that reference in filter.phtml.