PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Currency Symbol Placement

  1. Hi,

    I'm using Gravity Form pricing fields.
    But the currency symbol keeps appearing after the price.
    How do I change this...

    Thanks!

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  2. Richard Vav
    Administrator

    Can you provide a link to a page containing the form in question so we can take a look.

    Regards,
    Richard

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  3. Hi Richard,

    Thanks in advance...

    this is where you can view the form:
    http://theliquidmachine.com/v2/store/products/t-shirt-tlm-logo/

    Cheers

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  4. David Peralty

    You can use this hook to move it:

    http://www.gravityhelp.com/documentation/page/Gform_currencies

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  5. Where do I use the hook?
    and how? I'm pretty new to this stuff....

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  6. Richard Vav
    Administrator

    You would place the following in your theme's functions.php file between the opening <?php and closing ?> tags

    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;
    }

    If you compare it with the example in the documentation you will notice the euro symbol has moved from the symbol_right to the symbol_left

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  7. Perfect! Thank you!

    Posted 11 years ago on Thursday June 13, 2013 | Permalink

This topic has been resolved and has been closed to new replies.