What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: How do I add a dynamic metafile (file type) to my product page that is not showing up?

How do I add a dynamic metafile (file type) to my product page that is not showing up?

clever-crumb
Excursionist
11 0 4

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. 

Trying to add _ingredients list_ file type to dynamic source.png

Replies 12 (12)

Liam
Community Manager
3108 344 895

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

clever-crumb
Excursionist
11 0 4

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...?

Incredible-ro
New Member
6 0 0

Hello, did you find any solution? I have the exact issue on the same theme. Thank you

AndyBY
Visitor
2 0 0

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.

Incredible-ro
New Member
6 0 0

Did you find any solution?

CambDell
Visitor
1 0 0

Clever... same issue here. Cannot edit metafields for different products. Once you change it changes them all.

rkmishra89
Shopify Partner
5 0 0

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"
        }

 

 

dynamic-resources.png

AndyBY
Visitor
2 0 0

Hello, where do I need to paste this code?

clever-crumb
Excursionist
11 0 4

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! 

diegoPanino
Shopify Partner
1 0 0

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!

clever-crumb
Excursionist
11 0 4

This didn't work for me unfortunately. 😞  It only allowed video files to be added for me using Dawn theme. 

clever-crumb
Excursionist
11 0 4

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.