The Pricing Fields in Gravity Forms are designed specifically to work with the payment providers that we support via our Add-Ons. This is why not all currencies are available by default on the Settings page. Only currencies supported by PayPal and Authorize.Net are currently available as default settings.
HOWEVER you can add any currency you want or customize existing currencies using the gform_currencies hook.
I'm not sure what you are trying to do with the get_currencies() function but that isn't what you would use to customize the available currencies. You would use the gform_currencies hook to name the new currency and define how it should be formatted and handled.
You can find documentation for the gform_currencies hook here:
http://www.gravityhelp.com/documentation/page/Gform_currencies
There are also numerous other currency related hooks and filters available, although the gform_currencies hook is the primary one for adding new currencies. You can find all of the Gravity Forms hooks and filters here:
http://www.gravityhelp.com/documentation/page/Developer_Docs
You would use the gform_currencies hook to add the Indian Rupee and define it's formatting. You would place your custom code to do this in your themes functions.php file. OR if you wanted to you could create your own Gravity Forms Add-On that adds the Indian Rupee currency to Gravity Forms and release it as a free plugin... if you wanted to go that far.
Posted 12 years ago on Tuesday June 12, 2012 |
Permalink