Magento 2 get Bundle product price without currency symbol in final_price phtml
-
04-10-2020 - |
Question
How to get Bundle Product Price without Currency symbol in magento 2 final_price.phtml file. When I use
$product->getName()It is giving the product name but when I use
$product->getPrice()it is not giving any result.How Can I get the product only price (without currency symbol)
Solution
I Got The Solution we can use
echo $product->getFinalPrice()instead of
echo $product->getPrice()in final_price.phtml.Then it will give the price of the product with out currency symbol.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange