Customer File Upload - Not Showing in Cart

Solved
Highlighted
New Member
3 0 0

Hello! I have a product with multiple customization fields: Name, Address and House Photo--which is a file upload. It appears correctly on the product page but does not show up in the shopping cart.

 

Here is the relevant code from the product page:

 

Screen Shot 2019-11-15 at 2.48.04 PM.png

 

But I can't figure out where the issue is in my code to have it appear in the cart.

Given my limited knowledge, I'm not sure if it's my code or the limitations of the theme I am using.

 

This is from cart.liquid

 

Screen Shot 2019-11-15 at 2.49.02 PM.png

 

I am using "Simple" theme with customizations. Thanks!

0 Likes
Highlighted
Shopify Expert
3913 559 940

This is an accepted solution.

Hi @Sara123 

Change code as per bellow:

 

 {% if p.first == 'Photo' %}
          {{ p.first }}:
         <a href="{{p.last}}" target="_blank"><img style="vertical-align: middle;width: 100px;" id="cart_breed" src="{{p.last}}"></a>
   <br />
 {% else %}
     //your existing code
 {% endif %}

Note: Change Photo to your image property. 

 

Want to modify or custom changes on store hire me.
Want to give Gift for time? its my Paypal too.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
Highlighted
New Member
3 0 0

Hey, I have the same problem in the venture theme. 
But I do not understand were  I need to add the code so I can see the uploaded image in my cart. Can you help me with this? 

 

Cart template 

 

Knipsel code Cart.PNG

Product template 

 

Knipsel Code Product.PNG

 

 

 

0 Likes
Highlighted
Shopify Expert
3913 559 940

If you have add to cart by ajax function then they cant upload image, for that we have to do code in ajax function of existing function.

they work if you have direct cart page add to cart by form not by ajax function. 

Want to modify or custom changes on store hire me.
Want to give Gift for time? its my Paypal too.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
3 0 0

Where do you find the ajax function code? Is it in theme.liquid folder? 

0 Likes
Highlighted
Shopify Expert
3913 559 940

No check in asset->theme.js file 

Want to modify or custom changes on store hire me.
Want to give Gift for time? its my Paypal too.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
3 0 0

Thanks for replying man.

But I really do not know what I should change in the  theme.js folder in order to let it work. 

A lot of lines... 


@Jasoliya wrote:

No check in asset->theme.js file 



 

 

0 Likes
Highlighted
Shopify Expert
3913 559 940

This is an accepted solution.

Thats why i told you need js code knowledge to find ajax cart function in file and then you have to make code to upload image with ajax function.

Or Pm me if you want me to do it. If you can find 'add.js' work may be thats you add to cart function. 

 

Want to modify or custom changes on store hire me.
Want to give Gift for time? its my Paypal too.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
5 0 0

I am having the same issue with the example below. Can you please PM me with a quote on how much it would cost to add the file upload feature. I am using the Empire theme.

 

https://chips-games.myshopify.com/collections/custom-full-color-poker-chips/products/qstomizer-teste...

 

 

0 Likes