Shopify themes, liquid, logos, and UX
Hi guys,
Here's something that's probably very basic but I can't figure-out.
I have a metafield which definition is single line of text + list of values + preset choices. Basically, a multi-select field.
When I print this field on a page with liquid, it is auto-formatted into a <li> list.
What can I add to the liquid tag to turn it into a comma-separated string?
Thank you!
Hi @dsktdskt,
I have created a metafield in my store with the exact same setup as you mentioned and I was able to create a list of items in the metafield using this liquid code:
Pairs well with <BR>{{ product.metafields.custom.goes_well_with | metafield_text }}
My metafield is named "product.metafields.custom.goes_well_with" which you can adjust to your metafield name. The output of this is shown in the image below.
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024