Are Money Filters Based From Shop or Cart Currency?

Hey all! My brain is telling me money filters are primarily based off of shop.currency. I know there are some additional store level current formatting inputs in /settings/general to establish the default formatting for price rendering, which leads me to think shop is the main data source.

What brings this question to my mind, is that recently I have been cleaning up some hardcoded | remove: '.00' liquid code from client themes. What I have noticed from some QA is that if my cart currency uses a format such as: .00 for trailing zeros then | money_without_trailing_zeros seems to work fine. However when a currency uses ,00 for trailing zeros, then | money_without_trailing_zeros seems to fail and retain the ,00. The store is based in a currency where trailing zeros are explicitly .00, so I imagine | money filters may still use the shop.currency as a base somewhere?

I am working with a store that uses Global E for their markets and currency conversion and I have a very large preference to tackling things from a server side Liquid render perspective before ever looking in the direction of a JS based solution. A JS solution isn’t tough to work out, I just really do not enjoy JS based rendering for initial complete state renders, I prefer JS to simply augment what is present, and help swap parallel content.

If a price has non-zero change, show it. Otherwise, go away trailing 00

Showing USD

Showing NGN

Showing CRC

Hey Matthew,

This is a tricky one - have asked our internal teams and will get back to you asap!

1 Like