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.

CynoInfotech

CynoInfotech was founded in 2019, in Ahmedabad, Gujrat. we have a trusted Web Development and Design Company that helps businesses in streamlining their operations through Magento 2 Extension and advanced modern technology solutions.

Let’s connect