How to show grand total amount in english words Magento 2 invoice pdf?
-
09-03-2021 - |
Pregunta
In Magento 2 invoice pdf, how can I show grand total amount in english words also? How can I achieve this?
Solución
You Can Convert Using NumberFormatter class
$f = new NumberFormatter("en", NumberFormatter::SPELLOUT);
echo $f->format(1432);
Output :-
one thousand four hundred thirty-two
Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange