I'm listening to the catalog_product_collection_load_after event to add some code when the category products grid / list is loaded, and from the observer code I want to get the following data:
- is it list view or grid view?
- if grid view, how many products per row?
looks like I need to access the products toolbar block, but I'm not sure how to do it. or maybe there's a better way?
Edit: forgot to mention, when screen is resized products per row change (for example reduced on smaller screens). can I know that ahead inside the php?
thanks!