Re: Region Specific Main Menu Collection

Region Specific Main Menu Collection

ColinH
Tourist
7 0 4

My store is currently visible in the US, UK and International regions, but I want to add a separate header ‘menu collection’ for visibility in the UK only as I plan to include products that can only be delivered in the UK. I understand some code will need to be added but can anyone tell me how this is done please? I've currently got menu headings of home, products, blog and customer service but want to include another one for UK Only (working title) Many thanks in advance.

Replies 4 (4)

namphan
Shopify Partner
2690 349 396

Hi @ColinH,

Please send the website link, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
ColinH
Tourist
7 0 4

Hi - here you go... thanks.

www.bestpetvillage.com

namphan
Shopify Partner
2690 349 396

Hi @ColinH,

Please follow these steps:

- Step 1: Add item 'menu collection' to menu header

- Step 2: Please go to '...' > Edit code > snippets > header-dropdown-menu.liquid file and add code here:

Screenshot.png

Code:

{% unless localization.country.iso_code == 'GB' %}hidden{% endunless %}

 

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
ColinH
Tourist
7 0 4

That's great - Thanks very much for this. I'll try it out and let you know how it goes...