2

I am using Magento's file upload on the front end for customers to upload pictures. When I get to the cart, it shows the product image and not the uploaded file. What do I need to add to get the uploaded file to show instead of the generic product image? Thanks.

  • can you please post an answer with how you solved the issue. – Baby in Magento Jul 26 '16 at 13:57
  • i will give extra bounty 100 points if this work for me. – Baby in Magento Jul 27 '16 at 12:05
5
+50

There are two ways.

1) When you save image from front-end then it will added to the particular product image gallery and set this new image as a image ,thumb image so all places you got latest uploaded image.

2) The another way is that if you don't want to add in image gallery then create your custom module. Crate one table and store the product id,image name. When you required this product image then fetch from our table display over there.

  • 1
    Appreciate it. Since Magento doesn't store these images I have to add it to my own created tables? – Kyle Jan 1 '14 at 1:24
  • Yes you have to store image in custom table. – Keyul Shah Jan 1 '14 at 1:28
  • You welcome. :) :) – Keyul Shah Jan 1 '14 at 1:49
  • @KeyulShah can you please update the answer with code. – Baby in Magento Jul 26 '16 at 13:33
  • This is not a right way if a user add the image from front-end and hold the product for 2 min before checkout process. within that 2 min if other user save the other image for that product then 2nd image will be show for first user. – Jack Jul 26 '16 at 14:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.