Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
Using the Dawn theme. I have been pulling my hair out with this for months and still I've found no solution to this issue. All other metafields I have set up as a dynamic collapsable row on my product page is working fine, it's just the file metafield option that is not showing up in my list of dynamic sources (see pic). Does anyone know how to fix this? I see a lot of threads about this issue but, no solid solutions. It seems it's a bug or issue with the Dawn theme from what I can gather. Shopify experts, please fix this issue or at least give people a work around/code to fix it.
Hi Clever-Crumb,
The file type metafield should appear as an available dynamic source for theme inputs that accept files, eg: on a Image with text section, for the Image setting you'll be able to select the file metafield as a dynamic source, see this video on my test store.
If the input type is something like a text box, the file would be available as a dynamic source there.
Hope this helps.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam,
Thanks for responding, but I'm not really sure how this example works for my situation. I need a collapsable row (metafield-file) added to each product page whereby I can insert a specific file (individual products have different ingredient files) for that product.
I have the collapsable row, I can add a file to each product page in the backend but the file itself is not showing up on the frontend product page. Any ideas...?
Hello, did you find any solution? I have the exact issue on the same theme. Thank you
Having the same issue with Sense theme! I need to add different size chart images in a collapsible row for different product, but it only allows me to choose dynamic content from Text metafields, not files.
Did you find any solution?
Clever... same issue here. Cannot edit metafields for different products. Once you change it changes them all.
you need to update your block schema as below, do change the id and label as you want.And then you will see something like the screenshot in your theme editor.Click on the hovered icon and you can select the metafield.Now metafields you can edit from the products.
{
"type": "richtext",
"id": "dynamic_image",
"label": "Section Image"
}
Hello, where do I need to paste this code?
Hi Rkmishra89, thanks for offering a solution. I don't really understand it though 😕 Can you please dumb this down for the non-coders here, step by step would be amazing. Thank you!
Maybe late, but if someone is still struggling, here are my 2 cents.
To me none of the above suggestions, works, however setting the input setting as "video" did the trick!
This didn't work for me unfortunately. 😞 It only allowed video files to be added for me using Dawn theme.
Hi everyone reading this thread, bit of an update. I didn't manage to find the exact solution to my problem however I did find a work around by adding custom liquid code to the collapsable row which worked by adding a hyperlink file download! See https://www.youtube.com/watch?v=gHt96kSrs9M&t=427s for video tutorial. Hope this helps others.