Liquid, JavaScript, themes, sales channels
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..
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
We would be using an app called "Advanced Registration" to control the accounts on the site.
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.
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.
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:
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024