Request for Custom Liquid Code for Product Page

Solved

Request for Custom Liquid Code for Product Page

-Charlo-007
Excursionist
25 0 0

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.

Accepted Solution (1)

Guleria
Shopify Partner
3403 679 963

This is an accepted solution.

{% 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. 

- If helpful then please Like and Accept Solution.
- Drop an email   if you are looking for quick fix or any customization
- Email: [email protected]
- Try GEMPAGES a great page builder

View solution in original post

Reply 1 (1)

Guleria
Shopify Partner
3403 679 963

This is an accepted solution.

{% 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. 

- If helpful then please Like and Accept Solution.
- Drop an email   if you are looking for quick fix or any customization
- Email: [email protected]
- Try GEMPAGES a great page builder