In order to hide products with retail only pricing for wholesale customers, you need to create B2B collections
Fena can manually enable & sync collections, so please contact support@fena.co to enable that.
1. Go to Theme settings and choose "Customize"
2. Select “header” on the left side of the page
3. Select "Menu" and click "Edit" in the Header settings
4. Create a copy of the link that leads to your collections(this link will lead to the b2b collections). You can name it any way you want, however this name should be unique within your links. If you want to name b2b link same as regular collection link, add a space at the end of it. Please see the example below.
5. Go to Themes and select "Edit code". Then, open the "header-dropdown-menu.liquid" file in snippets folder
6. Add the follwing code beneath the “{%- for link in section.settings.menu.links -%}”
{% assign retailCollectionsLinks = "Name of the retail link" | split: ", " %} {% assign wholesaleCollectionsLinks = "Name of the wholesale link" | split: ", " %} {% assign is_wholesale = false %} {% if customer.tags contains 'FenaWholesale' %} {% assign is_wholesale = true %} {% endif %} {% assign show_page = true %} {% if wholesaleCollectionsLinks contains link.title %} {% unless is_wholesale %} {% assign show_page = false %} {% endunless %} {% endif %} {% if retailCollectionsLinks contains link.title %} {% if is_wholesale %} {% assign show_page = false %} {% endif %} {% endif %} {% if show_page %}
7. On top of {%- endfor -%} tag add line
{% endif %}
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article