How can I create a separate wholesale menu for my online store?

@Ninthony

Hi I was wondering if you can help me with this. I been trying to replace the menu with the wholesale menu for tagged customers here is my nav menu code:

{% assign firstLevelMenu = linklists[section.settings.main_linklist]%} {% for link in firstLevelMenu.links %}

{%- assign child_id = forloop.index -%}
{% if link.links.size > 0 %}

{% else %} {% endif %} {% endfor %} {% if settings.show_multiple_currencies %}
{% render "currency-switcher" mob_nav: true %}

{% endif %}

{%- if section.settings.header_social_icons -%}
    {% render 'social-profiles' %}
{%- endif -%}

© {{ 'now' | date: "%Y" }} {{ shop.name | link_to: routes.root_url }}

Menu is closed

I tried your way and this also and both did not work:

Once you find it, replace it with the following for mobile navigation:

{% assign menu_handle = ‘main-menu’ %}
{% if customer %}
{% if customer.tags contains ‘wholesale’ %}
{% assign menu_handle = ‘main-menu-wholesale’ %}
{% endif %}
{% endif %}
{% for link in linklists[menu_handle].links %}

Or with this for desktop navigation:

{% assign menu_handle = ‘main-menu’ %}
{% if customer %}
{% if customer.tags contains ‘wholesale’ %}
{% assign menu_handle = ‘main-menu-wholesale’ %}
{% endif %}
{% endif %}
{% include ‘site-nav’, linklist: menu_handle %}

Hi, hopeing you can help me. I created the wholesale section as mentioned above many times before with debut theme. However the header.liquid file for colorblock theme is different. Can you please tell me where to insert the code on that theme? I’ve been at this for 4 days.

I appreciate any help.