1

I would like to have a maximum number of items, say 10, per filter in layered navigation with a More... link that would then load all of the items for that filter. This would be really useful for the brands filter as there are a lot of them.

Any info/tutorials would be greatly appreciated!

1
  • I can suggest you this extension you can get everything you need for Layered navigation.
    – dh47
    Commented Jan 14, 2015 at 7:26

1 Answer 1

1

The layered nav options are displayed using the template app/design/frontend/{package}/{theme}/template/catalog/layer/filter.phtml.
If you want you can add your logic in there.
But I don't recommend this approach. Doing it like this 10 of your brands (or other filter) will always get more visibility than the rest of them. I'm no SEO specialist but I think that having hidden links will affect your page rank (Can someone confirm or bust this?).

I suggest having a max-height on each filter type with an overflow scroll.

6
  • From a performance perspective I highly recommend using the more approach. Layered navigation should not be crawled to begin with: infinite combinations resulting in a heavy penalty for consuming a lot of the crawlers time and the results are subsets of content displayed elsewhere.
    – user4351
    Commented Jan 14, 2015 at 8:50
  • @Melvyn. Thanks for clearing the SEO thing. But I still think the 'more' approach is less user friendly. But this is just my opinion.
    – Marius
    Commented Jan 14, 2015 at 8:53
  • Depends how well you implement it. For logged in customers you can opt to allow them to configure a set of defaults. You can show the most popular brands first, or brands you want to promote. You can also do a delayed fetch using Ajax, to cut down on the initial load time and fetch the rest through one request. More is less applies to showing everything as well: too many choices can be cluttering.
    – user4351
    Commented Jan 14, 2015 at 9:15
  • @Melvyn My SEO is setup with rel="canonical" for category pages. Hopefully this stops crawlers crawling the filters. I have seen lots of ajax layered navigation extensions, maybe one of them has this functionality already. The popular brands first is a good idea. Looks like I should look up some ajax magento tutorials too. Commented Jan 15, 2015 at 4:39
  • It does eventually. But since the bot has to first request the filtered page to parse it's canonical it will take a while. But don't take my word for it, check your webserver logs and see what pages are requested by crawlers.
    – user4351
    Commented Jan 15, 2015 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.