We are running on Magento 2.3 and I want to remove the currency symbol from the product price and also remove the decimals when the price is .00
How can we achieve that?
I already changed the file:
<?php /* @escapeNotVerified */ $block->formatCurrency($block->getDisplayValue(), (bool)$block->getIncludeContainer(), 0) ?>
That works fine for the productlist page, but not the productpage.
var precision = 0, does not work well, because all prices do not have decimals in that case. But we only want to remove the decimals when the price is .00
How can we achieve that and also remove the currency symbol?