Jump to content

Multiple image import with csv not working


Recommended Posts

Hi,

I'm using prestashop 1.7.6.8 and I'm trying to import my products using a csv file. Each of my products have one or more images and only those products with only one image are loaded correctly. I have tried to leave only 1 image per product and every image is loaded correctly so my conclusion is that there is a problem with the value separator.

I've been investigating on previous posts and I've tried many different separators, even §, but none of them work. I don't use any space between elements in the column of the URL.

The images are correctly uploaded on the server because when I use only one image all of them are visible.

An example for the URL field of one product (three images separated by §):

http://anabelkis.es/fotosWebPorArticulo/AnillosSub/1/IMG3373.jpg§http://anabelkis.es/fotosWebPorArticulo/AnillosSub/1/IMG3372.jpg§http://anabelkis.es/fotosWebPorArticulo/AnillosSub/1/IMG3371.jpg

Does anyone know a solution for this?

Thanks in advance

Link to comment
Share on other sites

Hi @pererumbo

You need to separate the products URL's by placing a ',' in between them like
http://anabelkis.es/fotosWebPorArticulo/AnillosSub/1/IMG3373.jpg, http://anabelkis.es/fotosWebPorArticulo/AnillosSub/1/IMG3372.jpg, http://anabelkis.es/fotosWebPorArticulo/AnillosSub/1/IMG3371.jpg

and it should work.

In case of any issue please do share your CSV file and I will look into and fix it for you!

Link to comment
Share on other sites

Hi Tanver,

Thanks for your answer. Separating the urls by commas was my first attempt but it didn’t work.

After many trials I discovered the issue. My images are 5000x3000 pixels and it seems that the server was overloaded when uploading a lot of products. Actually I realized that the maximum limit for my server (initial plan) are 3 products (with 3-4 images each). 
 

Given that I need to upload +500 products, I have uploded all the products via csv without images and I wrote a Python code to upload the images using the API so the problem is solved now.

Link to comment
Share on other sites

Hi @pererumbo,

I am just done with a similar project and do know how to do that first thing you need to do is to upload the images to the 'upload' folder, separate the multiple image files with a ', ' [coma] separater.

You should leave the 'ID' field empty, not required but helpful. and do run your imports the order as being suggested below
1. Import Categories
2. Import Products and 
3. Import Combinations

It should work!
Thanks,
Tanveer

Edited by Tanver (see edit history)
Link to comment
Share on other sites

  • 3 years later...
On 11/21/2020 at 4:13 PM, tanmalik786 said:

Hi @pererumbo,

I am just done with a similar project and do know how to do that first thing you need to do is to upload the images to the 'upload' folder, separate the multiple image files with a ', ' [coma] separater.

You should leave the 'ID' field empty, not required but helpful. and do run your imports the order as being suggested below
1. Import Categories
2. Import Products and 
3. Import Combinations

It should work!
Thanks,
Tanveer

Would you please help me out with this issue? I am trying to upload csv file and ignored the most of the fields but still all fields ignored by Prestashop 1,6.. Also how I can upload all the photos that are in separate columns? Because when you choose 2 the same option the system won't allow it..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...