Request for Custom Liquid Code for Product Page

Hey!

I am currently utilizing the {{ product.metafields.eato.ISAC}} metafield to categorize our products, and we need assistance with implementing custom liquid code to display specific categories based on this metafield.

Below are the criteria for the custom liquid code:

  • If the {{ product.metafields.eato.ISAC}} metafield is equal to “BIO000000”, the product category should be displayed as “General”.
  • If the {{ product.metafields.eato.ISAC}} metafield is equal to “BIO023000”, the product category should be displayed as “Adventurers”.
  • If the {{ product.metafields.eato.ISAC}} metafield is equal to “BIO002010”, the product category should be displayed as “African American”.

We would greatly appreciate it if you could provide us with the necessary custom liquid code to achieve this functionality on our product pages.

{% if product.metafields.eato.ISAC == "BIO000000" %}
  General 
{% endif %}

{% if product.metafields.eato.ISAC == "BIO023000" %}
  Adventurers
{% endif %}

{% if product.metafields.eato.ISAC == "BIO002010" %}
  African American
{% endif %}

I hope it will helps you.