Jump to content

[1.5.3.x] Importing with CSV doesn't create /img/p/x/x/<xxx>.jpg and img/tmp/product_mini_xxx.jpg


Recommended Posts

Hi, guys,

 

I'm trying to import my products from a CSV file. I fixed category and image bugs with modified AdminImportController.php on github, but importing with CSV doesn't create /img/p/x/x/<xxx>.jpg and img/tmp/product_mini_xxx.jpg.

 

After uploading with CSV, in folder /img/p/2/1/3/ there are:

/img/p/2/1/3/213-home_default.jpg

/img/p/2/1/3/213-large_default.jpg

/img/p/2/1/3/213-medium_default.jpg

/img/p/2/1/3/213-small_default.jpg

/img/p/2/1/3/213-thickbox_default.jpg

 

Importing image manually, instead, Prestashop creates two files more, that will use to regenerate thumbnails

 

/img/p/2/1/3/213.jpg

/img/tmp/product_mini_213.jpg

 

Without this file, regenaration doesn't work

 

Can you check, please?

Link to comment
Share on other sites

Hi, guys,

 

I'm trying to import my products from a CSV file. I fixed category and image bugs with modified AdminImportController.php on github, but importing with CSV doesn't create /img/p/x/x/<xxx>.jpg and img/tmp/product_mini_xxx.jpg.

 

After uploading with CSV, in folder /img/p/2/1/3/ there are:

/img/p/2/1/3/213-home_default.jpg

/img/p/2/1/3/213-large_default.jpg

/img/p/2/1/3/213-medium_default.jpg

/img/p/2/1/3/213-small_default.jpg

/img/p/2/1/3/213-thickbox_default.jpg

 

Importing image manually, instead, Prestashop creates two files more, that will use to regenerate thumbnails

 

/img/p/2/1/3/213.jpg

/img/tmp/product_mini_213.jpg

 

Without this file, regenaration doesn't work

 

Can you check, please?

 

I don't have the same subdirectories.

I have /img/p/2/1 then no more folders under that.

Image files there:

21-home_default.jpg

21-large_default.jpg

21-medium_default.jpg

21-small_default.jpg

21-thickbox_default.jpg

21.jpg

 

If that helps.

Link to comment
Share on other sites

uhm....

 

 

Prestashop split image name and create subdirectory, so a file called 309 will be in /img/p/3/0/9/

 

you have 21.jpg file too, and 21.jpg is an image imported with csv?

 

Yes, it was created from csv, I see It's one of my products images.

Link to comment
Share on other sites

So I'm trying to import CSV for the first time to see if I get the same issues as you do.

Do you have to have a whole url for images? Do all your images have to be stored online to do this?

 

The way I did it: images hosted online. Full url images in the csv

Link to comment
Share on other sites

Hi folks.

 

Regarding the subdirectories:

Prestashop split image name and create subdirectory, so a file called 309 will be in /img/p/3/0/9

 

In 1.5.3.1 is it still the same system?

My images are all in img/p (no subdirectories)

1-1-home_default.jpg

1-1-large_default.jpg

..

..

10-10

..

..

11-11 ...etc

 

The product pictures are also not shown on the front page (in categories, or if i click on a product)

I do see the picture in back office.

 

I have default theme, no core changes.

 

Any ideas for this bug?

Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...

I haven't been able to get product images to upload correctly through the csv loader. I saved the images in an imgimport folder I created in the public_hmtl directory. Then I entered the links to the image files in my csv. http://www.mysite.com/folder/image.JPG, But it hasn't worked. It worked for the category images, but not the products!

 

Could someone please explain how the/img/p thing works? I get the impression once you upload a file onto your server prestashop takes it and saves it in a thumbnail, medium, and full size format, but how do I know what format

to enter on my csv?

Link to comment
Share on other sites

  • 7 months later...

Hello Sir,

 

When i category CSV import then get

 

2 errors

 

   No Name (ID: 41,Dees,tessd s fsfsf,3,1) cannot be saved
    Property Category->name is empty

 

There are 2 warnings. Hide warning

    URL rewriting failed to auto-generate a friendly URL for:
    Rewrite link for (ID: 41,Dees,tessd s fsfsf,3,1) was re-written as friendly-url-autogeneration-failed.

 

please give me any solution............

 

Thank's

Link to comment
Share on other sites

×
×
  • Create New...