How can I hide specific menu items based on country in Shopify?

Hi Everyone!

I have an international website, and Shopify markets are working well. Still, I would like to restrict a few menu items from showing for a particular country(s) as they’re unavailable in that country.

Does anyone have any idea how to do this?

Thanks
Lee

Hi @snugg

You can try with the below code

{% unless localization.country.iso_code == 'GB' %}
  {%- if block.settings.show_dynamic_checkout -%}
    {{ form | payment_button }}
  {%- endif -%}
{% endunless %}

Find the below article for more details

https://www.shopify.com/partners/blog/customize-content-by-country

Hope it will help…