Is it possible to assign specific products to individual customers?

Hi there!

I’m wondering if this is possible. I need to restrict customers to only be able to view product/s that are assigned to them. Meaning, Customer A can only view Product A, Customer B can only view Product B and so on.

I’m not a programmer but can find my way around simple code. I was hoping that a simple if statement with tags on the product template could achieve what I need:

i.e. If logged in customer.tags matches product.tags then display the product page else show “Access Denied”

A developer told me that that tags would have to be hard coded but it’s a solution that is not viable for me. Imagine having to open up the liquid file each time I get a new customer to add the tags in. Is there some way it could be done without it being hard coded?

There may be an app which could do this but I much rather not use one.

Thanks. Any ideas appreciated!

Hello @Adrian23 ,

To make that tags dynamic you can create an option in theme settings where you have to add new tags in commo serrated format.
In this way you can first check what tag user have after that in next statement you can check, Is user tag is available in the list you added in theme settings.
If yes show that user specific tag products else No result.

Thanks