How can I alter text depending on customer tag?

Hi there,

We’re looking to find a way to change a sentence or show a sentence on a page built with Shogun based on a customer tag.

In short, we want to show text “AAAAA” for customers without the tag and show text “BBBBB” with customers with a specific tag.

We already used Wholesale Price Manager to help us with the pricing but we’d like to see if this is something we can do.

Thank you!

Hey @Sorakami !

You can do what you are looking for using some Liquid code. Here’s an example:

{% if customer.tags contains "wholesale" %}
  content for customers with wholesale tag
{% else %}
  content for customers without wholesale tag
{% endif %}

You may be able to add this code into the Shogun app when editing the page, otherwise you’d have to edit the page template directly using the code editor in the Shopify admin (Online Store > Themes > Actions > Edit code).

Hopefully this helps!