Liquid, JavaScript, themes, sales channels
Hi there,
The store is goodchangestore.com and we're using the Ella theme.
I've recently started customising some content based on user location as we've expanded to another country. I've managed to customise the announcement banner and set up simple redirects to country specific landing pages.
e.g. code for announcement bar
{% if localization.country.iso_code == 'AU' %} <div> <div class="message"> <img src="https://cdn.shopify.com/shopifycloud/web/assets/v1/d4e9cde3edb3e1732ec50170e158d750.svg" alt="Australia" width="32" height="18"> FREE SHIPPING ANYWHERE IN AUS OVER $50 | <a href="https://www.goodchangestore.com/collections/gift-sets-and-starter-kits"> SHOP & SAVE UP TO 15% ON OUR BUNDLE DEALS </a></div> </div> {% else %} <div> <div class="message"> <img src="https://cdn.shopify.com/shopifycloud/web/assets/v1/cacb9f87701ae2707676064d036a97b2.svg" alt="New Zealand" width="32" height="18"> FREE SHIPPING IN NZ OVER $50 | <a href="https://www.goodchangestore.com/collections/gift-sets-and-starter-kits"> SHOP & SAVE UP TO 15% ON OUR BUNDLE DEALS </a></div> </div> {% endif %}
What I'd now like to achieve is the customise the shipping information on the product pages, as we'd like to vary the free shipping amount in each country.
I'm having trouble figuring out how to do this and would really appreciate some suggestions. Currently the shipping information is displayed as per the image below as a custom information block under product information in the theme editor. Can i customise this by location somehow or do I need to setup the page differently? Can't find where in the theme files this is called up.
I'd appreciate any suggestions! Cheers.
You can achive this via writing whole collapsible content using liquid in theme.
Made metafield name matched with ISO field name.
Rest your code will work.
User | RANK |
---|---|
35 | |
24 | |
17 | |
9 | |
9 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023