How can I modify market content based on language preference?

Solved

How can I modify market content based on language preference?

Franksmk
Visitor
2 0 0

Hello!

 

 

I am currently using the new Markets functionality. I have for each market its own domain running under the same shop.

What I would like to find out is how to change the content of the market depending on whether it is Portuguese or Spanish. I guess it will be like when we use the shop.locale object that returns the language in which the web is being displayed and so we can for example hide or show content depending on which is its value.

Can this be done with markets? Is there any object or other way to do it?

 

 

Thanks!

Accepted Solution (1)

JHKCreate
Shopify Partner
3571 638 932

This is an accepted solution.

Hi @Franksmk 


This is indeed doable, please check Shopify's documentation on this: How to Customize Content by Country with Shopify — Shopify Tutorials (2022)

 

More importantly, if you want to extend this you can also customize your theme in order to have three different input slots for banners per country then only display the right one in code depending on the market. 

Should that help answer your query, we always appreciate liking & marking an as answer to let the community find quality solutions faster. Thanks!

 

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

View solution in original post

Replies 2 (2)

JHKCreate
Shopify Partner
3571 638 932

This is an accepted solution.

Hi @Franksmk 


This is indeed doable, please check Shopify's documentation on this: How to Customize Content by Country with Shopify — Shopify Tutorials (2022)

 

More importantly, if you want to extend this you can also customize your theme in order to have three different input slots for banners per country then only display the right one in code depending on the market. 

Should that help answer your query, we always appreciate liking & marking an as answer to let the community find quality solutions faster. Thanks!

 

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

MarkDodgson
Shopify Partner
21 0 3

Hey Franksmk, I know this is comment from months ago, but I just wanted to let you know that we just launched an app that helps you personalize your customers experience (It can be used acrossed geographic regions like you talking about). Essentially, it lets you display the right content, to the right customers at the right time, by using rules to trigger the changes. It's free to try

 

We have lots of ideas and improvements to make, but we'd truly love any feedback from the community. What do you like? What don't you like? What can we do better?

 

You can learn more about it here.

Shopify: https://apps.shopify.com/relevantbits-context

Context: https://relevantbits.com/context