I’m developing a custom theme and I don’t want to show the currency type with the totals. How can I remove it? Previously when using view templates there was {{total | money_without_currency }}. It doesn’t work now.
Under settings, remove the Base currency.
I want the base currency. I don’t want currency to be shown next to the amounts. I want to have it separately in another place.
Replace total.text
with total.number
, if you’re modifying the example theme.
Thanks, that works. But then the number is not formatted as in the preferences.
FOr eg:
It shows 530000
not 530,000.00
as it should be shown. When using the total.text it is formatted correctly.
The only attributes on the total
variable are label
, text
, number
and emphasis
… none of which serve your purpose exactly.
text
attribute is the fully-formatted version as per the preferences, with currency symbol in front.number
atteribute is the number itself with no formatting whatsoever.
So a solution would need to ignore the formatting in preferences and manually inject the commas instead. Unfortunately, I just spent a good 10-15 minutes or so, trying a few different things, and haven’t found something that works yet.
Will let you know if I figure it out.