How to get product collection using a factory method in Magento 2

 In Magento blog

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 Comment


0