I need to display price in my custom template
$productCollections = $productCollections->addAttributeToSelect('*')
->addAttributeToFilter('status', 1)
->addAttributeToFilter('is_sale', 1)
// ->addAttributeToFilter('show_in_home', 1)
->addAttributeToFilter('visibility', \Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
->load()
foreach($productCollections as $productCollection){
echo $productCollection->getName();
}
I am using above code to implement product listing in home page.
I need to display price of product with html style
$this->getPriceHtml($product);