Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

currency object is returning the wrong symbol

currency object is returning the wrong symbol

ScalaApps
Shopify Partner
81 4 16

I have a client from Egypt using our app, and every possible currency object that Shopify provides returns the "ج.م" currency symbol, however Shopify always format prices using the "LE" symbol.

 

I have tested the following objects:

 

{{cart.currency.symbol}}

{{localization.country.currency.symbol}}

 

I'm currently getting the first symbol using, this solution, however this is too verbose and I think Shopify should create a better solution:

 

 

 

var currencySymbol = "{{ shop.money_format | strip_html | split: '{{' | first }}"

 

 

Scala Apps



- If you find my reply helpful, please hit Like and Mark as Solution

- Se você achar minha resposta útil, por favor clique em Curtir e Marcar como Solução

Parcelamento/Installments | Hide sold variants | Apps | Blog
Replies 0 (0)