Post by FlexVenkat » Tue Apr 23, 2019 2:07 pm

Hi,

I'm using opencart version 3.0 with Journal theme, Kindly let me know how to convert the total amount into words in order invoice. Say, for ex, if the total is 1500, means I need to get as "One thousand and five hundred only.

Thanks,

Newbie

Posts

Joined
Tue Dec 11, 2018 2:01 pm

Post by letxobnav » Tue Apr 23, 2019 4:10 pm


Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by kestas » Tue Apr 23, 2019 4:14 pm

You can use google and will find a lot of.
For example this one: https://stackoverflow.com/questions/115 ... r-in-words You just need to implement it to your invoicing.
If you are not a coder, you can write PM to me and we can discuss about implementation.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by FlexVenkat » Wed Apr 24, 2019 2:33 pm

letxobnav wrote:
Tue Apr 23, 2019 4:10 pm
look here
viewtopic.php?f=202&t=210309&hilit=total
Thanks @ letxobnav , I will look in to it.......

Newbie

Posts

Joined
Tue Dec 11, 2018 2:01 pm

Post by FlexVenkat » Wed Apr 24, 2019 2:34 pm

kestas wrote:
Tue Apr 23, 2019 4:14 pm
You can use google and will find a lot of.
For example this one: https://stackoverflow.com/questions/115 ... r-in-words You just need to implement it to your invoicing.
If you are not a coder, you can write PM to me and we can discuss about implementation.
Thanks @ kestas, will contact for customization if needed,

Newbie

Posts

Joined
Tue Dec 11, 2018 2:01 pm

Post by letxobnav » Wed Apr 24, 2019 7:36 pm

if you want to use the build in NumberFormatter class your php installation needs to have the php_intl extension activated.
So ask your host first or if you have access to your php.ini file, do it yourself.

Code: Select all

$numberInWords = new NumberFormatter("zh", NumberFormatter::SPELLOUT);
$numberInWords->format(25.55);
works perfectly in many languages.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by FlexVenkat » Wed Apr 24, 2019 7:39 pm

letxobnav wrote:
Wed Apr 24, 2019 7:36 pm
if you want to use the build in NumberFormatter class your php installation needs to have the php_intl extension activated.
So ask your host first or if you have access to your php.ini file, do it yourself.

Code: Select all

$numberInWords = new NumberFormatter("zh", NumberFormatter::SPELLOUT);
$numberInWords->format(25.55);
works perfectly in many languages.
Thanks! , will contact my hosting provider to activate the same.

Newbie

Posts

Joined
Tue Dec 11, 2018 2:01 pm
Who is online

Users browsing this forum: No registered users and 1 guest