Skip to content

[GraphQl] Add Formatted price to Money Type. #30387

Open
@Hexmage

Description

@Hexmage

Description (*)

I would like the Type Money to also return the value formatted for its current local.

Expected behavior (*)

Example:

"final_price": {
    "value": 10,
    "currency": "EUR"
    "formatted": "€ 10,00"
}

Depending on the store locale formatted should be different.

Benefits

The logic is already present in Magento its just not accessible through GraphQl currently. And the logic would not have to be re-implemented in whatever you are using as a frontend.

Additional information

Activity

changed the title [-][GraphQl[/-] [+][GraphQl] Add Formatted price to Money Type.[/+] on Oct 9, 2020
PayalPatel8

PayalPatel8 commented on Oct 10, 2020

@PayalPatel8

#dmcdindia2020

magento-engcom-team

magento-engcom-team commented on Oct 10, 2020

@magento-engcom-team
Contributor

@PayalrPatel thank you for joining. Please accept team invitation here and self-assign the issue.

PayalPatel8

PayalPatel8 commented on Oct 10, 2020

@PayalPatel8

@magento I am working on this

Repository owner unassigned on Nov 4, 2020
added
Priority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.
Severity: S4Affects aesthetics, professional look and feel, “quality” or “usability”.
on Nov 6, 2020
dineshvb

dineshvb commented on Nov 17, 2020

@dineshvb

@magento I am working on this

dineshvb

dineshvb commented on Nov 18, 2020

@dineshvb

@sidolov Is this ready to be implemented?

sidolov

sidolov commented on Nov 18, 2020

@sidolov
Contributor

Hi @dineshvb , please, check high priority issues first (issues labeled with P0, P1, P2 labels) since the PRs targeted for such issues will be processed first.

moved this to Pull Request in Progress in Feature Requests Backlogon Aug 19, 2024
jakwinkler

jakwinkler commented on Jul 8, 2025

@jakwinkler

@sidolov is the PR in progress? @ihor-sviziev I personally believe that this one should be closed as you can get the store configuration (currency) in the same GraphQL query - there is no need to return the price in a proper format.
I also think that some of the labels are incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Pull Request in Progress

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @sivaschenko@jakwinkler@sidolov@Hexmage@magento-engcom-team

      Issue actions

        [GraphQl] Add Formatted price to Money Type. · Issue #30387 · magento/magento2