Jump to content

[SOLVED] Import Product Images & Combination Images


Recommended Posts

Prestashop 1.5.4.1 on localhost.

 

Hi

 

I have my CSV files setup and working as they should be. They import with no errors. So all ok except for one small issue which I'll explain.

 

I have my products.csv file with two images in the "image url" field for each product. The "Delete Exisitng Image" field is set to "1" to delete images before import. I import the product file and the images show correctly, with the cover image set as expected.

 

I then import the combinations.csv file with the "Delete Exisitng Image" field is set to "0" to keep images before import. This imports ok, but shows two thumbnails for the main product image.

 

If I import the combinations.csv file with the "Delete Exisitng Image" field is set to "1" to delete images before import, this deletes all the images imported from products.csv. leaving me with none of the two images imported in products.csv.

 

I would also like to set the cover image from one of the images on combinations.csv rather than products.csv

 

Thanks for reading.

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

Just a note to simplify my previous post.

 

If combinations exist, I want to make the first combination image the cover image.

 

If no combinations exist, I want to make the first product image the cover image (in other words, as it works currently).

 

Thanks.

Link to comment
Share on other sites

Fixed it. As I'm reformatting data from a database, check if the product image name is the same as the combination image name. If it is, then leave the combination image field on the combinations.csv file blank. When you then import the file in, this will be resolved.

Link to comment
Share on other sites

×
×
  • Create New...