Changing Navigation Menu For Different Countries

On my shop I have a range of products that i unfortunately don’t sell to international customers, However It is a main range for my UK Customers and so it is on my Navigation Main Menu.

Is there a way to have a different menu for different countries? To remove some parts of the menu?

Thank you for any help.

Hi @Emmalouuise ,

Yes, you can hide the navigation not related to your region.

Use the below method to get the user’s current location.

[store's URL]/browsing_context_suggestions.json

Hope it helps…

hi @gr_trading

sorry, where abouts would i put that code? and how do I tell it what to show and what not to show?

You need to update it in header.liquid API will give JSON object having the country name in it.

Please refer below screenshot.