3

I have some heavy developments on my Left Hand Layered Navigation , in Category View Page.So its taking time to load , and increasing the page load time.

I have already done code optimization and rest of my code is not possible to remove from layered navigation because of client requirement..

So I want to do some thing like this first load all products list then load layered navigation but note it should not increase page load time

So If it is possible anyhow that , I can load the navigation after page load then It will be very good for me.

Please help me and give me some suggestion

closed as off-topic by Amasty, Mufaddal, user487772 Sep 23 '14 at 5:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: http://sscce.org/" – user487772
If this question can be reworded to fit the rules in the help center, please edit the question.

0

Layered navigation block does 2 things:

  1. it builds the left filters
  2. it adds SQL conditions to the product collection.

So you have to load the navigation first, then the product collection. Otherwise you'll always show all products in a category.

The solution is to split building left filters block and generating conditions for the product collection.

It allows you to load Mage_Catalog_Layere_View block via, say, AJAX call after the page load.

  • how can we do this.can you give some solution? – Amit Bera Sep 20 '14 at 16:46

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