cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Appending of unit value i.e.$ symbol in customized column like "Total Order" in Backoffice

Former Member
0 Likes
271

Experts,

How to add/append unit value i.e.a '$' symbol for newly added customized columns in the searchlistview results on the orders page in backoffice. We have configured the new columns in our extension backoffice config, but '$' dollar symbol is not showing.

Accepted Solutions (0)

Answers (1)

Answers (1)

mpern
Product and Topic Expert
Product and Topic Expert
0 Likes

I think you need to define a custom renderer for the new columns.

The out-of-the-box renderer for currency values in the listview (class com.hybris.backoffice.labels.renderers.StandardCurrencyListViewRenderer) unfortunately only works for the order total, but it should be easy to make it work for other fields on the order (just check how it handles fields for order entries)

custom-backoffice-config.xml

 <context type="Order" component="listview">
     <list-view:list-view>
         ...
         <list-view:column qualifier="customTotal" spring-bean="customCurrencyListViewRenderer"/>
         <list-view:column qualifier="customTax" spring-bean="customCurrencyListViewRenderer"/>
         ...
     </list-view:list-view>
 </context>