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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Pull Request in Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions