How can I show a dynamic currency bar on my website?

12 0 1

I have a problem. i have to show a bar at the top of the website, and when somebody reach 50€ of shipping they are free. But if somebody see the website in USD currency this 50€ should be like 47 $ or whatever.
I've tried like that: {{ 5000 | money_with_currency }}

but is rendered always 50,00 and change just the symbol of the currency.

I expect something like: {{ 50,00 € | money_with_currency }}.


I mean, should not be something crazy to do, but maybe in this case liquid can't help.


Let me know!

Because for now to reach anyway this result, i've created another product that is now shown with the value of 50€, and then i've called the price of this product where i want to show this price. The code is this:

{% for product in collections.all.products %}
{% case %}
{% when 8639645516114 %}
{% assign my_product = product %}
{% endcase %}
{% endfor %}

+<span>{{ my_product.price | money_with_currency }}</span> 

But is super long and should not be so hard :')

Replies 4 (4)

Shopify Partner
7929 1543 1573

Hi @divadminlocal 

You can try this code and check

<span>{{ my_product.price | money_without_trailing_zeros | money_with_currency }}</span> 

- Helpful? Like and Accept solution to let me know or Donate
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Enjoy 1 month of Shopify for $1. Sign up now.

12 0 1

Hi! you probably misunderstand. In this way i still have to create the product just for this purpose and i don't want to. 

I need a different solution than this one (that is just working but is a very bad way to do it)

Shopify Partner
6401 1535 1906

Hi @divadminlocal 


If you have Markets open to international, the currency get updated as per conversion. From your admin page, go to Settings, then Markets. You should be able to configure the shipping in the said country as well. So you can apply your free shipping configuration. Your code for <span> should work in other countries. 



If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
12 0 1

Hi, as I've said I've just tried in this way, and the result is that is rendered always 50 + the symbol of the currency. That yes, it change when the currency of the website get changed, but the amount of money stay the same, so is not converted.