Determine the `market` from a liquid template

maximco
Shopify Partner
3 0 0

In our shop we use the Markets feature and we need to customise some templates depending on the market you are visiting from. There's any liquid variable or tag to determine the market you are visiting from? 

 

Using the locale or currency doesn't work since they are not unique or each market. 

 

Cheers!

Replies 3 (3)

JHKCreate
Shopify Expert
3571 639 917

Hi @maximco 


At the moment there is no easy Liquid access for the Market chosen, I would invite you to check that link: How to Customize Content by Country with Shopify in case this could help, your alternative would seem to go via countries instead of markets.

 

Cheers!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
RMedia
Shopify Partner
51 2 4

To find the current market use {{ localization.market.handle }}

Founder @ Advanced Free Shipping, create custom free shipping rules easily.
- Set Free-Shipping by 20 parameters; products, collections, customers + more
- No need for confusing Scripts or Carrier Calculated Shipping
- To learn more about 'Advanced Free Shipping' visit our Shopify app page here.
jthk116
Shopify Partner
38 3 7

This is correct and should be accepted as the solution @maximco 

Please like and accept solution if I was helpful, thanks!

Jay K.