discolabs / cartjs

A Javascript library to power cart management for Shopify themes.
https://cartjs.org
MIT License
478 stars 85 forks source link

Not showing correct currency #196

Open ajbater opened 3 years ago

ajbater commented 3 years ago

No matter whether I use rv-html="cart.total_price | money Currency.currentCurrency", rv-html="cart.total_price | money" or data-cart-render="total_price_money_with_currency" my prices are coming through with a $ instead of a £.

My HTML with currency for this store is £{{amount}} GBP and HTML without currency is £{{amount}}, and I have placed this {{ 'option_selection.js' | shopify_asset_url | script_tag }} in my theme.liquid The correct currency symbol is being displayed elsewhere on the site, so I think the issue must be with Cart, or have I missed something?

Longseason808 commented 3 years ago

I'm having the same problem with rv-html="cart.total_price | money Currency.currentCurrency" in the cart. The currency symbol does not change with the price in the cart. It stays as $. @ajbater did you find a solution?

Longseason808 commented 3 years ago

@ajbater I found a solution that uses the general settings for money formatting. Use "money_with_currency" instead of "money". rv-html="cart.total_price | money_with_currency Currency.currentCurrency That switched the currency symbol for me.