Get product collection using a factory method in a block file in magento:

How to get product collection in .phtml file. getProductCollection method form our block file.

You can get objectManager throw get product collection but it’s not proper way.

Leave a Reply

Your email address will not be published. Required fields are marked *


CynoInfotech was founded in 2019, in Ahmedabad, Gujrat. CynoInfotech is a Magento module development company that grow up over this year with outsourcing clients.