How can we achieve below?
if a customer selects options from layered navigation and then goes to a product page, and then back to the category/search view, all of their selections are wiped away. Is there a way to hold those selected options so customers don’t have to re-filter?
How can I set layered navigation filters pro-grammatically?
Best Answer
You could store the filters in an array in session. Store using the category ID as a key, so that the wrong filters aren't applied when the user visits a different category.
As suggested by @Subesh, you can observe on
controller_front_init_before
, doing something like the following:Untested, but this should put you in the right direction.