Adding File Upload To Product Page WITH NO APP

I’m trying to add this code to my shopify product page :

Upload image

it did work and showing up but the issue is when i click add to cart there is no image id and when the customer checkout i receive no image + customers can add to cart without uploading an image like if it not required like if it doesn’t work
please help it’s rider theme i’m using (similar to dawn theme )

Hi, @nsr .

Rio here from the Shopify Community team.

Could you let me know more about your workflow? I’m happy to see if there is a free app that does this.

Where did you want the image to be sent once the customer uploads it for the product? If you can share more about the workflow after the customer uploads to the product page, I’m happy to look into this for you.

I think the file image upload input field has to be associated with the form. Try putting this attribute in the input field so that you receive it when adding to cart: form=“product-form-{{ section.id }}”.

i just want it to be with the order .
i used to work with that code in brooklyn theme and everything was fine the costumer upload the image and have it in the cart then when he complete payment i receive it with the order in the order section, but with this new dawn theme things got a little bit confusing !

where should i add that attribute with the current code in the product page ??
like this ?

Upload image

I had the same issue. Thing is, it HAD worked properly in the past, but suddenly stopped. What made it work again was turning mini-cart OFF. (This was with Turbo theme.) Once I switched to any other type of cart, image uploads began working as expected.

Hi, Yes it looks like you have it as a property for the input field so it looks correct to me.

how do i turn it off ?

In theme editing, go to theme settings, select Cart, and if your theme gives you choices for type of cart, you will see them there.

sadly my theme don’t have it :cry:

I’ve given mine a class=“line-item-property__field” - have you tried doing that?


 
      
       

Check out this video if you are still looking for a solutionhttps://youtu.be/3SNoIYeRWSs

Goodafternoon

where can I find the coding (for the reguired photo, so I can copy paste it