I want to change the currency symbol that appears before any cost/price in web pages throughtout the application.
Exploring the code I found that the BLC has a 'blc' thymleaf dialect and associated
Code: Select all
'org.broadleafcommerce.core.web.processor.PriceTextDisplayProcessor
' class for 'price' attribute
So in html files the code is like :-
Code: Select all
<div style="font: 32px/28px 'Oxygen', Helvetica, sans-serif;"[b] [u]blc:price[/u][/b]="${order.total}"></div>
Doubts:-
1. The PriceTextDisplayProcessor class has overridden function getText that seems to be returning hardcoded '$' with the price.
Code: Select all
if (price == null || price.isZero()) {
return "$0.00";
} else {
return "$" + price.getAmount().toString();
}
( I could also see a TODO by developer : "// TODO: Actually make the returned text formatted for the given locale"
Is that a bug?!?
2. Where are the beans defined for BLC dialect and processor? How the blc dialect is actually configured and how can I configur my own processor for price attribute
3. How 'Currency Resolution' is connected with this http://docs.broadleafcommerce.org/2.2/Currency-Resolution.html . I just could now connect them.
4. Any quick workaround this problem?
Thanks for you help.
Sambhav