you will be able to write the library for conversion of numbers into words, see example:
http://www.karlrixon.co.uk/writing/conv ... -with-php/
http://www.karlrixon.co.uk/writing/conv ... -with-php/
Interesting concept!
The script that web-project pointed out could be converted into a "tool" that can be used in OpenCart (done). However, there are limitations on how it could be used.
It couldn't be used to convert a "price", as this has already been formatted with currency symbol, decimal point (which may differ from currency to currency - some use a dot, others use a comma) and possibly a thousand separator (again, this may differ from currency to currency). It would only work on a "raw" number and, if that "raw" number was a decimal like 100.00, you would end up with "one hundred point zero zero" being displayed and not "one hundred".
Would it be possible to provide a "mock-up" of how you want it to look on the invoice?
The script that web-project pointed out could be converted into a "tool" that can be used in OpenCart (done). However, there are limitations on how it could be used.
It couldn't be used to convert a "price", as this has already been formatted with currency symbol, decimal point (which may differ from currency to currency - some use a dot, others use a comma) and possibly a thousand separator (again, this may differ from currency to currency). It would only work on a "raw" number and, if that "raw" number was a decimal like 100.00, you would end up with "one hundred point zero zero" being displayed and not "one hundred".
Would it be possible to provide a "mock-up" of how you want it to look on the invoice?
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
I just want to know where i will copy the above code so that i can call and test this function from my invoice.tpl file.
I dont know how the function/procedure works in opencart , where i copy above code to use & test this function otherwise
understand what the output can get from this function.
Thanks
Vishal
I dont know how the function/procedure works in opencart , where i copy above code to use & test this function otherwise
understand what the output can get from this function.
Thanks
Vishal
PM sent.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Who is online
Users browsing this forum: No registered users and 218 guests