Shopify themes, liquid, logos, and UX
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
With ShopifyPayments and Shopify Geolaction App installed, if a user logs into the store from a country other than mine, he will see prices in his local currency.
Shopify by default shows prices only in the new currency chosen by the customer. However, I would like the original currency to always be shown to everyone, even to those who have a chosen different currency.
Is it possible to always show both? I would like there to be a row before the converted price and then the new price in the chosen currency. I would like this thing everywhere the price appears (home page, product pages, collections pages, etc.)
Who knows how to do?
Hi Antony, can you give me a quote to pass me the code and tell me where to put it?
Hello @rafz ,
You can try to follow these steps:
{{ product.price | money }}
Modify the code to display both the original currency and the converted price. Here's an example of how you can do this:
{{ shop.currency }} {{ product.price | money }}
Save changes and repeat steps for any other template files where you want to display the prices.
Hope this can help.
Ali Reviews team.
Hi @AliReviews, thank you so much for your answer.
Inside "Sections" ("Sezioni" in my screenshot below) I can't find any file with a name similar to "collection-template.liquid". I'm using the free Dawn theme.
In any case, I have checked all the files in this folder and none of them show the string "{{ product.price | money }}".
The ones that are more similar (as you can see in the last screenshot) are "{{ line_item.original_price | money }}" and "{{ line_item.final_price | money }}".
Do you think I have to change one or both of these? And how to modify them at this point?
Also, I'd like to add a few words to that code: "Original price:" (before the first price) and "Price in your currency:" (after the second price).
Between the two lines there must be a < br > to wrap and show them on two lines.
And of course these two sentences need to be written so that Shopify will then let me see them on the translation page so that they appear to everyone in their own language.