cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the display format of order status in the BackOffice

former_member801969
Discoverer
0 Kudos

How to display the status in the format: " name + ' - ' + code ", for example, Processing - CREATED, in order status drop-down editor in the BackOffice?

Thanks in advance if you can help.

Accepted Solutions (1)

Accepted Solutions (1)

former_member634058
Active Participant

Hi Chenwen,

OrderStatus is an enum. So any localization comes from the *locales-*.properties. The entries will be in the form of:

type.OrderStatus.<code>.name = <value>

where <code> is the status code you want to localize, and <value> is the localized value.

eg.

type.OrderStatus.CREATED.name=Processing - CREATED

Thanks.

former_member801969
Discoverer
0 Kudos

Hi Sumit, thanks for your answer. But I am also wondering is it possible to create a provider class so that order status can be showed according to the display format ?

former_member634058
Active Participant
0 Kudos

Hi Chenwen,

For backoffice view, you can have a rendered written, so that you can render a field view in the way you like it.

Thanks.

former_member801969
Discoverer
0 Kudos

Hi Sumit, could you tell me which file I need to refer, for example, ConfigurableDropDownEditor? So that I could override it to define the display format?

Thanks.

former_member634058
Active Participant
0 Kudos

Hi Chenwen,

You can refer any renderer bean available in the *-backoffice-config.xml. It will be dependent on the functionality you want to achieve, for example, standardCurrencyListViewRenderer.

Thanks.

Answers (0)