Add Upload File in Shopify 3.0
Wow Shopify com IA
files/Channels_-_Growth_Social_Static_Affiliates_Affiliates-Merchants__320x480_7724dbcb-6bd4-46ed-8a59-93eb2012e8b0.png

Add Upload File in Shopify 3.0

Please note that the code may not be compatible with any currently installed apps.

A lot of people were asking on how to achieve this. Quite simple guys. Just a few steps. I did posted on how to add text field in your product page. See link.

 

To start:

1. Go to your admin store > Online store > Themes > Actions > Edit code.

2. Open the Sections folder and find the main-product.liquid. 

3. In the file, find the "buy_buttons", then it should have a {% form %}. You can paste the code below. 

<

 

4. To make this as a required, delete the novalidate: 'novalidate', in the form. Make sure you include the comma. Check the video for more information.

 

That's it (",). Quite simple. No javascript code needed

Copied!
Voltar para o blogue

5 comentários

Hi, is there a way to make this apply to only some products? thanks

Inez

Hi Michael,

You will need to add javascript code that will accept an array of files instead to be able to accept multiple files.

Made4Uo

Hi first I would like to thank you for your sharing. Secend, I wonder how to upload multi-images? I cope and paste the code three times, but it only shows one image in the shopping chart.
Would be very grateful if you reply me.

Michael

Hi @Cate,

This is a section. You can apply it to any part of your shopify store but if you are thinking on applying it to a certain product. You have to create a new product template. You just have to add a section in it. Then change the template of your template in the product section of your admin.

Made4uo

Hi! I was thrilled at how simple this is after seeing several other very involved tutorials. I was wondering if there’s a way to only make the upload file apply to one product?

Cate

Deixe um comentário

Checkout The FREE SHopify Tools

Shopify FREE tools