Customising shipping information based on Geolocation

Customising shipping information based on Geolocation

goodchangeadmin
Visitor
3 0 1

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 &amp; 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 &amp; 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.

 

Screen Shot 2023-03-27 at 11.31.44 AM.pngScreen Shot 2023-03-27 at 11.32.22 AM.png 

Reply 1 (1)

gr_trading
Shopify Partner
2045 149 206

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.

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee