Product List: Show out of stock products in the last

In this blog post, we will be sharing how to show out of stock products at last of product listing page. Assumption: MagePsycho_Productsort is the skeleton module Steps: 1. Register event: catalog_product_collection_load_before File: app/code/local/MagePsycho/Productsort/etc/config.xml … <frontend> <events> <catalog_product_collection_load_before> <observers> <magepsycho_productsort_catalog_product_collection_load_before> <type>singleton</type> <class>magepsycho_productsort/observer</class> <method>catalogProductCollectionLoadBefore</method> </magepsycho_productsort_catalog_product_collection_load_before> </observers> </catalog_product_collection_load_before> </events> </frontend> … 2. Implement the observer model: File: …

Read moreProduct List: Show out of stock products in the last