Barbara Posted October 31, 2009 Share Posted October 31, 2009 I want to import my products using a csv file, but where do I put the images so PS can use them?I put them in img/p/, but after importing, the image names in the database are different from the original names, so PS doesnt use the originals this way.Thanks,Barbara Link to comment Share on other sites More sharing options...
rocky Posted November 1, 2009 Share Posted November 1, 2009 It isn't important where you put the images. I suggest creating an upload/import directory and putting them there. Prestashop will accept any URL you enter and grab the image, put it in the img/p directory as a JPEG with the image ID as the filename, then automatically create all the image sizes. Link to comment Share on other sites More sharing options...
Barbara Posted November 2, 2009 Author Share Posted November 2, 2009 Thanks for your answer.What is image ID exactly? Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2009 Share Posted November 2, 2009 It is a number assigned by Prestashop to uniquely identify the image. The first uploaded image is given an ID of 1, the second 2, the third 3, etc. The image filename ends up being the product ID, then a hyphen, then the image ID. Link to comment Share on other sites More sharing options...
Barbara Posted November 2, 2009 Author Share Posted November 2, 2009 That worked, thanks But now, when I do Regenerate thumbnails, I get 1. Cannot write no-picture image into the suppliers images folder. Please check its writing permissions. 2. Cannot write no-picture image into the scenes images folder. Please check its writing permissions. 3. Cannot write no-picture image to the product images folder. Please check the folder's writing permissions. 4. An error occured while thumbnails' regeneration. All the subfolders of /img/ are set to 777, so what's the problem? Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2009 Share Posted November 2, 2009 Sorry, I don't think I can help you with that. I can only suggest that you check the permissions of the img folder and the en.jpg, en-default-home.jpg, etc images in its subfolders. Link to comment Share on other sites More sharing options...
Barbara Posted November 2, 2009 Author Share Posted November 2, 2009 I saw that I forgot to set the default image of the Dutch language. That's what caused the error.Now I get "Thumbnails successfully regenerated", but only the images of product 1 are generated... Link to comment Share on other sites More sharing options...
Barbara Posted November 2, 2009 Author Share Posted November 2, 2009 Now I see that the first image of product 2 isn't called 2-1, but 2-4.Strange, but I'll try renaming my pics... Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2009 Share Posted November 2, 2009 Yes, that is because the second number is the global image ID. It doesn't reset for each image. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now