- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2016
12:02 PM
02-29-2016
12:02 PM
How to correctly format amount
Hello,
Currently, prices are displayed with 2 decimals and the currency symbol after the number. I need the price to be displayed without decimals and the symbol before the number.
I know that $block->getDisplayValue() in amount/default.phtml returns the number and I can format it as I would do it in PHP, however, I want to know the "Magento2 Way"., for example, using $block->formatCurrency method call.
Thanks
Jaime
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2016
01:57 PM
02-29-2016
01:57 PM
Re: How to correctly format amount
I have a ready «Price Format» extension for Magento 2: https://mage2.pro/t/355
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2016
03:27 AM
03-08-2016
03:27 AM
Re: How to correctly format amount
But I have to pay for it. I am looking for a help to do it by myself since I have very limited budget.
Regards
Jaimr