I need to hide a portion of the main menu - in our case it would be “WHOLESALE” in the main menu so that it would not be visible to anyone who is not logged in.
We use LOCKSMITH and I have placed locks on our collections and products with the following permissions: “tagged with retailer” and “signed in”.
We have “Hide any links to this collection and it’s products … in your shop’s navigation menus” enabled.
The collections and products are hidden but the “WHOLESALE” section remains visible in the menu whether you’re logged in or not.
sorry for this issue can you please try this similar way
{% if customer.tags contains "wholesale" %}
//wholesale code to items.
{% else %}
//normal code to items.
{% endif %}
{% for link in linklists[menu].links %}
//code to items.
{% endfor %}
I have a similar issue. There is one item from the main menu that I wish to show only if the customer is logged in, otherwise, I want to show the rest of the menu to non logged in customers also. The item I want to hide from non logged in customers is ‘Services’. I am using Dawn theme.
Hi @KetanKumar - I’m trying to do this as well but I’m having a really hard time trying to identify where I need to include this in the code. Are you able to help?
{% if customer.tags contains "drs-distributor" %}
//drs-distributor code to items.
{% else %}
//normal code to items.
{% endif %}
{% for link in linklists[menu].links %}
//code to items.
{% endfor %}