Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi, I'd like to display shipping from prices on a product page / blog post for example
Royal Mail International from: £4.99
DPD from: £5.99
Where the £4.99 / £5.99 would convert if the visitor changed the site currency.
What code would be needed please?
Thanks
Solved! Go to the solution
This is an accepted solution.
Hi @Smithy_Dave,
This is not possible, it is only added directly with edit code. At 'Delivery & Returns' you can only enter the HTML code and it won't be able to convert when a different currency is selected.
So if you want it to show in the products tab you need to go to the code of the 'sections/product-template.liquid' file and add the code directly here.
Hope it is clear to you.
Hi @Smithy_Dave,
Please add code:
{{ 499 | money }} and {{ 599 | money }}
It will help you to display the currency and convert it.
Thanks for the response I've added
<h3>DPD Next Day - {{ 599 | money }}.</h3>
but it displays when the page renders as
DPD Next Day - {{ 599 | money }}.
It's a tab about the postage costs populated by Accentuate Custom Fields - not sure if that would make any difference?
Thank you.
Hi @Smithy_Dave,
Did you add the code directly in the source or just through Customize.
Can you send me the screenshot where you added the code. I will check it.
Hi,
No code has been added in the shopify editor as I'd like the pricing to be with in the text. So I'm putting the code in the editor, after selecting HTML then saving, however this clearly isn't being saved as html.
This is an accepted solution.
Hi @Smithy_Dave,
This is not possible, it is only added directly with edit code. At 'Delivery & Returns' you can only enter the HTML code and it won't be able to convert when a different currency is selected.
So if you want it to show in the products tab you need to go to the code of the 'sections/product-template.liquid' file and add the code directly here.
Hope it is clear to you.
Thank you for this, I thought it might be the case - but had hoped there might be a simpler work around.
Hi @Smithy_Dave,
If you have any difficulty, you can contact me 🙂
Happy to help you
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025