Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello everyone,
I would like to know if it is possible to display the link of a file product metafields on the order admin page
I have indeed created a metafild file and would like to be able to retrieve it on my order page, without it being visible to my customers
like this
I looked through the different posts a bit and didn't find any suitable solutions.
thank you everyone
Solved! Go to the solution
This is an accepted solution.
Mentioned example is for single line metafield, since you are using file type metafield you have to use filter metafield.
<input type="text" name="properties[_uniquename]" value="{{product.metafields.custom.uniquename | file_url}}" />
Hope this will help...
Hi @Mariacrea ,
Please refer to the below article to implement the same.
hi @gr_trading
thanks to try to help me find a solution,
the proposed solution does add a field on the admin order page, with the file identifier, but not the direct link to download the file
moreover, the linked file identifier seems to be an identifier specific to Shopify and does not allow me to find the file 😞
I'm looking for a solution that would allow me to directly add the download link to the uploaded file on Shopify's servers
This is an accepted solution.
Mentioned example is for single line metafield, since you are using file type metafield you have to use filter metafield.
<input type="text" name="properties[_uniquename]" value="{{product.metafields.custom.uniquename | file_url}}" />
Hope this will help...
Hello,
this last code indeed gives me the text of the link.
you have to copy the url and paste it into the browser bar to be able to download the file but it's really a detail...
Many thanks xD
on the other hand I must have an app that prevents the code from working on certain products 😞 I will contact them to see if they can help me ^^
thank you again for your help
glad it helps you can use tag or template to stop working on few product you don’t need app for this.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024