Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
On my Shopify site I have implemented a currency selector that automatically selects and stores a cookie of the currency based on the country of the visitor.
Once this is selected, the currency conversion is working fine for products, cart and checkout but I would also like to do the same for some in-text prices that I have on my site.
For example, I have "Free shipping for orders over $20" in my announcement bar but this is only for domestic shipping (same for prices in shipping policy page).
Therefore, conditional on the cookie currency being equal to the default shop currency I can show my default announcement bar text. However, for international visitors I would like to be able to change the $20 to my international free shipping cost and have that adjusted to their local currency.
Ideally I would be able to do this without an app so that I can do this for any location on the site that I would like to have in-text prices. Is this possible?
Thanks.
I have one solution, probably not the best one but go to theme edit code -> find heather.liquid, locate to row 110 you will probably see something like
<p class="announcement-bar__message">{{ section.settings.text | escape }}</p>
you can change to:
<p class="announcement-bar__message">{{ section.settings.text | escape }} {{ cart.currency.symbol }}69</p>
so this way you will show the currency symbol after the message for the announcement bar and manually add the wanted price for free delivery in the example 69. The limitation here will be if you have different amount for free delivery based on different locations but you can setup same value for all locations 🙂
If you don't want to use symbol you can add
{{ cart.currency.iso_code }}
so this way will display the currency code like USD, EUR, GBP and etc.
This works on Brooklyn theme.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025