Collapsible row with dynamic metafield - Single Line Text (List)

Topic summary

Issue: A product metafield (“material” as Single Line Text – List) displays multiple values in a Collapsible row joined by the word “and,” which the merchant cannot translate. They want to change or localize this separator.

Context/constraints: The metafield is a list synchronized from an external source and used for filtering, so switching to a different field type (e.g., multiline text) or manually editing data isn’t viable.

Attempts: A suggestion to use a new multiline metafield was rejected because it breaks filtering and data sync needs. The merchant would accept either a translation or a neutral separator.

Solution implemented: The helper modified the Collapsible row’s theme code to replace the default “and” joiner with a comma, changing how list values are rendered (per shared screenshot). The merchant confirmed it works and looks good.

Outcome/status: Resolved with a comma separator as a practical workaround. No multilingual translation of the separator was implemented, and no built‑in setting to translate “and” was identified. Attachments/screenshots were used to show product setup and the code change.

Summarized with AI on February 7. AI used: gpt-5.

Hi,

I am new in Shopify. I am trying to create a new e-shop. I added custom metafield for materials (Single Line Text - List) to a product. I want to list all options in product detail using Collapsible row. Multiple options are divided by word “and” which I am not able to translate or to find where I can translate it. Is it possible to modify Collapsible Row to use other word for splitting multiple options?

Hi @matyashavel please can you explain a little more your problem.

Do you want like this?

Ocelove nohy

bavlna

Hi @Ahsan_ANC , it doesn’t have to be on the new line. It will be enough, if I am able to translate it to different language.

translate in different languages or only one language?

It would be ideal to different languages but for now it will be enough to only one language.

Then you can add translated text in the metafield?

I do not know how to do thath. I have metafield called “material”, which is “Single Line Text - List” type and when it containts two values (“Ocelové nohy”, “Bavlna”) and I try to render it using Collapsible Row, it joins two values with “and” word. Where I can translate this word?

can you add me to your store so I can have a look into it? its quite weired

I send you an invitation to anc2277@gmail.com, setup of a product is like that:

Instead of a list, I have created a new meta field with the name test material that is a multiline text. you can use that field.

This is not a solution what I am looking for. Data for a product are synchronized and “material” is a list, it is used for filtering. So there is no way how to translate “and” word?

a comma instead of word and will be ok for you?

Yes, it would be ok

plz check now

Yes, it looks good. How did you do that?

Great, thank you.