I have been experimenting with custom totals in theme and I found out just how difficult it is to simply format the calculated number in money format (with commas) and everything
I was wondering if we can get the following liquid tags and filters, that would make thing a little bit easier:
money_without_currency filter (for the US format #,###.00 )
modulo filter (for all other formats)
{% cycle %} seems hit and miss at times
Could we also have the currency Code and Symbol exposed to themes, so we don’t have to hard code the currency symbol for calculated figures.
The exchange rate is 3.6725 but I find it safer to calculate it with whole numbers and then divide with 10000 to get the comma in the right place since we noticed some discrepancy if we do not do it this way.
The format “N2” is to get the number with the right commas and points etc.