Commerce numbers2words
Categories
Component ID
2335475
Component name
Commerce numbers2words
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This module exposes a single function which given a number parameter converts it into words . I created this module when I was working with a eCommerce application where i needed to convert amount into words to be displayed on invoice.
So people needing similar feature can simply use it just by installing and calling the function from their module.
How to use it ?
- Download module
- Install it as other contributed module
Example Usage:
$amount = 1234;
commerce_numbers2words($amount);
echo $amount;
it prints out One Thousand Two Hundred and Thirty-Four.
