vendredi 3 mars 2017

If Statement for Collection Metafield - Shopify

I have added a metafield to a collection within my Shopify store. I have a namespace, key, and value. I am looking for a liquid code snippet to check if the collection has a specific metafield key, and then if so, to output the assigned value.

I have tried the following with no success:

Liquid error: Unknown operator =

Does anyone have any idea of how I could implement this functionality?

Thanks.

Aucun commentaire:

Enregistrer un commentaire