show template section only in a specific country or language

Solved

show template section only in a specific country or language

PiROmaarten
Tourist
4 0 1

Hi, on https://www.pirobbq.com/pages/verkooppunten I am showing dealers that sell my product. Some of those dealershave demonstrations and/or workshops with my product. I would like to add a section in the template where I show 'an agenda' with workshops and demo's. Because this is only relevant in The Netherlands I would like to show this section only in the Netherlands (or when people select Dutch language). Anybod knows how to show a section in a specific country only?

 

Thank you, Maarten 

Accepted Solution (1)

Sweet_Savior_3
Shopify Partner
1336 102 138

This is an accepted solution.

Hello @PiROmaarten 

 

Welcome to Shopify Community.

 

Yes, it is possible by using Shop liquid objects.

 

If you are good with code then you can add the given code where you have called the section:

{% if request.locale.iso_code == 'nl' %}

{% endif %}

 

Thanks

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!

View solution in original post

Reply 1 (1)

Sweet_Savior_3
Shopify Partner
1336 102 138

This is an accepted solution.

Hello @PiROmaarten 

 

Welcome to Shopify Community.

 

Yes, it is possible by using Shop liquid objects.

 

If you are good with code then you can add the given code where you have called the section:

{% if request.locale.iso_code == 'nl' %}

{% endif %}

 

Thanks

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!