Determine the `market` from a liquid template

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 5 (5)

JHKCreate
Shopify Partner
3571 638 926

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
86 8 10

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 9

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

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

Jay K.
BrstParshant
Shopify Partner
3 0 0

how can be get that the selected market is default or not?

 

Alejandrouda
Shopify Partner
7 0 4

This worked, thanks!

 

@RMedia would you know if we have this data available on JS as well? Otherwise I guess we could store this as a hidden variable in HTML