Upload photos where it uploads into my printable template

Topic summary

A merchant wants to enable customers to upload photos that automatically populate into a printable template for creating custom magnets.

Proposed Solution:

  • A developer suggests implementing custom code using line_item property code in the product.template.liquid file.
  • A code snippet was shared to be added after the {% form %} tag in the product template.

Implementation Challenges:

  • Multiple users are struggling to locate the correct file to insert the code.
  • One user cannot find the code in “template/product.json” as expected.
  • The developer clarifies it might be in “main-product.liquid” instead.

Current Status:

  • The discussion remains open with users seeking additional guidance on proper code placement.
  • One participant mentioned using “Uploadly” for photo uploads but needs help with template automation.
  • The solution involves custom coding rather than a built-in Shopify feature.
Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

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

Hi @Juliecosmosis

Yes this can be done via custom code line__item property code placing in the product.template.liquid file.

Thanks

1 Like

any chance i could get some assistance in getting my uploadly photos to automate into my template for print?

@tishalyn722

Yes sure let me share a code snippet with you shortly.

1 Like

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.


  
  

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 :smiling_face:

@Melnwaz it might be main-product.liquid