How can I make only tagged costumers see a button on my home page and other customers see another?

Hi :slightly_smiling_face:

I am using Appstle to manage subscriptions that give members access to a new collection of products.
I wish to have a button on my home page that will send tagged customers to that collection, and send non-members to a different page.
Is this possible?

I see it as two options:

  • Make the button redirect customers based on their tag.
  • Make two buttons that will be hidden or shown based on the customer tag.

Would appreciate any help with this :slightly_smiling_face:

Hi @ImriAgmon

You can use the below code to identify the login user with a specific tag name.

{% liquid
      if customer
        if customer.tags contains 'parents'
          assign userType = "parents"
        endif
      endif
    %}

Hope this will help…