I need to apply condition based on the category filters applied to the layered navigation. Let me know which event name will help us to fetch the values to the observer file
1 Answer
You can use the observer catalog_product_collection_load_before
. You can see the example code inside the link. The example shows how to apply additional filter after a filter is applied.
-
I need to trigger this event when the initial load of the category page using megamenu..which event is suitable for that?I am not able to achieve this using above.– sahanaCommented Aug 10, 2018 at 10:33
-
Your question should be updated. The answer is totally different.– PY YickCommented Aug 13, 2018 at 4:16
-
catalog_product_collection_load_before is removed in Magento v2.4.4 Commented Aug 11, 2022 at 10:20