In the 'Pricing Fields' the standard is that the valuta sign appears after the amount, but I want it before the amount.
Is this possible?
In the 'Pricing Fields' the standard is that the valuta sign appears after the amount, but I want it before the amount.
Is this possible?
You can use the gform_currencies filter in your theme's functions.php file to modify the position of the currency symbol.
Thanks! I just changed it in the currency.php.
We advise against editing the plugin files as any changes you make will be lost during updates, that is why I suggested adding the gform_currencies filter to your themes functions file.
I added it in my functions.php but my amount changed from 35,00 euros to 3.500,00 euros.
Can you post exactly what you put in your functions file.
Can you link to your form and show us what you put into your functions.php file?
Moved the eurosign to symbol_left and tried to throw out the other rules but still it changed to € 3.500,00 instead of € 35,00.
The link to the form is:
http://www.oliowerktaan.nl/13-7399/registration/
add_filter("gform_currencies", "update_currency");
function update_currency($currencies) {
$currencies['EUR'] = array(
"name" => __("Euro", "gravityforms"),
"symbol_left" => "€ ",
"symbol_right" => "",
"symbol_padding" => " ",
"thousand_separator" => ',',
"decimal_separator" => '.',
"decimals" => 2);
return $currencies;
}
This isn't happening because of the filter, instead of entering 35,00 as the price can you try entering just 35
No, it changes into 35,00 when I do so.
But isn't that what you want a price of €35,00
changed to € 3.500,00 instead of € 35,00.
If you enter 35 Gravity adds the 00 after the decimal separator automatically.
No, when I use the filter in the functions.php it changes to 3.500,00
What do you have your product price set to? Double check it once you enable the filter please.
If you are still having problems with this feel free to send me a temporary admin username and password to richard@rocketgenius.com and I will take a closer look.
Thanks for your support, I will change it in the currency.php for now, if there is no simple solution.
Olio, just remember that the change will be lost when the plugin updates, again if you want to send a temporary admin username and password to richard@rocketgenius.com I will take a closer look.