OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Datagrid field format for currency

This topic contains 1 reply, has 2 voices, and was last updated by Jaimy Jaimy 5 years, 2 months ago.

The forum will run in the read-only mode starting from March 1. Please head to StackOverflow for support.

  • Creator
    Topic
  • #33579
    alendo
    alendo
    Participant

    I would like to display a value as a currency value with euro symbol in datagrid. If I use:

    I see price value in $.
    Thanks
    Alessandra

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #33580
    Jaimy
    Jaimy
    Participant

    Hi Alessandra,

    What localization settings are you running in the System -> Configuration -> Localization -> Currency, since the frontend_type is, if I’m correct, formatted to your locale currency. If this setting is the default currency setting, it’s going to display the dollar sign.

    If you only want to display this column with the euro symbol you could use a context resolver. This would look like this in your datagrid:

    And the context resolver class in Acme\Bundle\AcmeBundle\Grid\FormatterContextResolver could look like this:

    This is from a OroCRM version 1.0 or 1.2 so I’m not sure if this trick still works on 1.2+. Hope this helps!

    Kind Regards,

    Jaimy Casteleijn

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No