All things Shopify and commerce
I want the customers upload their photos and it get uploaded into a template automatically, where I can print it. Is this possible as I am trying to make magnets and I need them to upload their own photos
Yes this can be done via custom code line__item property code placing in the product.template.liquid file.
Thanks
any chance i could get some assistance in getting my uploadly photos to automate into my template for print?
Yes sure let me share a code snippet with you shortly.
I’ve not seen a code snippet shared yet, and can’t find a way to dm you. Any chance you can still help with this?
@tishalyn722 sorry for late you can see my profile for better help.
<input type="hidden" name="id" value="{{ product.variants.first.id }}" />
<label for="upload">Upload your photo:</label>
<input type="file" id="upload" name="properties[Uploaded Photo]" accept="image/*" required />
please add this code snippet to your product template
after the {% form %} tag
hopefully it will work for you.
Hi
i trying to fond where to add this snippet but am having trouble. Cannot find it in the “template/product.json”
Are you able to help?
thank you so much ☺️
@Melnwaz it might be main-product.liquid
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025