From the $product
object I am getting the collection of product from block and to render the fields. I want to get the price with it's currency code like
$99.00
in product listing.
Right now, I am using the below code to get the price of the product but i need to display the price with currency symbol.
$product->getFinalPrice();
Best Answer
create a object of
abstractProduct
Block then call thegetProductPrice
method and pass product object as parameter. see below.Complete implementation example: