Hide Navigation Menu Item Until Customer Is Logged Into Approved account

EIVapeDenny
New Member
4 0 0

Hello,

I am trying to hide portion of our navigation menu until a customer is logged into an approved account. We are a B2B business and need to hide certain products from the home page/rest of the site until a customer is logged into an approved account. I have been looking at apps that allow you to hide products and collections on the home page and from search until a customer is logged in, but I am unable to find anything that will allow us to hide a part of our navigation menu until the customer is logged in. We are currently using the "Warehouse" theme.

The app that I have tried using is the "B2B Login To Access Pages" app, though it seems that this app does not work to hide items from poppin up in the search, though this is a separate issue entirely..

0 Likes
r8r
Shopify Expert
1437 157 478

Hi @EIVapeDenny 

yes, that should be possible. How exactly do you define the "approved"-status? That's the main question. The task itself sounds pretty straightforward and not too much work. Have you taken a look at Locksmith yet?

Mario

Mario Rader [he] ★ If you want to achieve greatness, stop asking for permission. ★ Studio Mitte
• Meine Antwort war hilfreich? Hinterlass bitte ein Like.
• Meine Antwort hat Dein Problem behoben? Bitte akzeptiere sie als Lösung.
• Ich hab dir etwas erspart? Ich freue ich mich immer über eine kleine Aufmerksamkeit
• Ja, ich biete Shopify-Services & -Entwicklung und freue mich von Dir zu hören!
• Bitte teile einen Link zu der Seite, deren Problem Du in deinem Beitrag beschreibst!

• Yes, I provide Shopify-services & -development. Feel free to get in touch!
• Please share a link to the site, which you refer to in your problem description. This incredibly increases the chances of you receiving a useful answer!
• My answer was useful? Please leave a Like.
• My answer solved your issue? Please accept it as the solution.
• I saved you time or money? I'm always happy to receive a little thank you.
0 Likes
EIVapeDenny
New Member
4 0 0

We would be using an app called "Advanced Registration" to control the accounts on the site. 

0 Likes
r8r
Shopify Expert
1437 157 478

I don’t know that App, so I’m not sure if they expose the information necessary to the theme layer. If they do, it’s not rocket science. 

Mario Rader [he] ★ If you want to achieve greatness, stop asking for permission. ★ Studio Mitte
• Meine Antwort war hilfreich? Hinterlass bitte ein Like.
• Meine Antwort hat Dein Problem behoben? Bitte akzeptiere sie als Lösung.
• Ich hab dir etwas erspart? Ich freue ich mich immer über eine kleine Aufmerksamkeit
• Ja, ich biete Shopify-Services & -Entwicklung und freue mich von Dir zu hören!
• Bitte teile einen Link zu der Seite, deren Problem Du in deinem Beitrag beschreibst!

• Yes, I provide Shopify-services & -development. Feel free to get in touch!
• Please share a link to the site, which you refer to in your problem description. This incredibly increases the chances of you receiving a useful answer!
• My answer was useful? Please leave a Like.
• My answer solved your issue? Please accept it as the solution.
• I saved you time or money? I'm always happy to receive a little thank you.
0 Likes
EIVapeDenny
New Member
4 0 0

The way the app works, the customer will not be able to log in until we approve their registration. So basically the code to hide the category could be written in such a way, if a customer is logged in on an account tagged with a chosen tag they can see the hidden menu items.

0 Likes
Kyle_W
Shopify Expert
133 21 81

Hi @EIVapeDenny!

I echo the previous suggestion for Locksmith. With the Locksmith app you can easily hide certain menu items in the store's navigation (and search results) based on customer tags. Here's an example of the settings for hiding a product:

 Image 2021-01-13 at 3.49.13 PM.jpg

Kyle W | Helium Dev, LLC
Helium builds apps that merchants depend on:
- Customer Fields
- Meteor Mega Menu
0 Likes