Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get store base currency shopify

Tags:

shopify

I am building an app for Shopify. My store has EUR as the base currency and supports different currencies such as USD, NZD,.. (I refer it as active currency).

I can get active currency with the javascript window.Shopify.currency.active and also the rate window.Shopify.currency.rate. How can I get the base currency symbol?

like image 714
coinhndp Avatar asked Oct 15 '25 14:10

coinhndp


1 Answers

Shopify provides the Currency object depending on the theme page.

You can use {{ cart.currency.symbol }} and {{ checkout.currency.symbol }} in Cart page and Checkout page respectively.

For any other page, you can use the Shop object to get the currency by using {{ shop.currency }}.

like image 157
adam allalou Avatar answered Oct 18 '25 11:10

adam allalou