Hide/ Display Specific Product based on Customer Tag?

hp2020
Excursionist
29 0 70

Is there an app that exists that will allow me to hide a specific product from a tagged customer, and also show a specific product to a specifically tagged customer ONLY whilst hiding it from everyone else that doesn't have that tag on their account? 

Replies 9 (9)

MarinaPetrovic
Shopify Partner
552 124 178

Hi @hp2020 , not sure about the app, but there is a custom solution for this:

{% if customer %}
{% if customer.tags contains ‘yourtag’ %}
<style>
#product_element_id{
display:none;
}
</style>
{% endif%}
{% endif %}

 

This code will hide product based in id. 
But it would be great if you could give me an access so I can take a look and tell you exactly where should this be added and how exactly. The code above is just an example - not an exact solution. 

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
hp2020
Excursionist
29 0 70

I would love if you can help me! Willing to hire this out rather than attempt it myself. Can you message me?

Weezio
Visitor
2 0 0

Hi, I was wondering if you could help me reproduce the same as mentioned above?

MarinaPetrovic
Shopify Partner
552 124 178

Hi @Weezio , sure 🙂
Can you share your url and explain which product would you like to hide and on which condition (example: if customer contain tags)?

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Weezio
Visitor
2 0 0
Hi,

Thank you so much for helping me! I am currently making a website for one
of my clients, she wants a database filled with themes. So whenever a
customer has bought a certain product, it will show up in their own
personal database. We're still busy with designing the site but this is one
of the roadblocks we came across.

I hope you're willing to help me.

Dear regards,

Marnix Bos
Timber-Teq
Visitor
3 0 0

Hi Marina, would you be able to help me do this same thing for my store?

hypefast-tech
Shopify Partner
7 0 0

Hi Marina,

I also have the same issue. Could you help me to put the code?
If yes, please drop me a message ya.

Thank you

Timber-Teq
Visitor
3 0 0

Hi, I was wondering if you could do this for my store?

KanishkT
Shopify Partner
31 0 11

Hey @hp2020,

You can try the Wholesale Lock Manager app to hide specific product pages, prices or URLs from tagged customers (and/or) non-logged-in customers.

The app also allows you to password protect a specific page(s) - in case you want to show that page to specific customers (that has the access code).

You can see the features of Wholesale Lock Manager app here (demo store): https://wlm.wholesalehelper.store/


Hope this helps 🙂

Marketing Manager at Wholesale Helper
App Store - https://apps.shopify.com/partners/goldj
Website - https://wholesalehelper.io/