horns Posted November 21, 2009 Share Posted November 21, 2009 Hi,Can anyone help me sort out how to upload category and product photos. It seems at the moment no one can tell me how to do it. When I upload photos all I get in FO is a box with a red x in place of the photo. Any help to solve this problem appreciated. I have been trying for a whole week with no help from the forum for some reason. RegardsPaul Link to comment Share on other sites More sharing options...
FBert Posted November 21, 2009 Share Posted November 21, 2009 HelloIf you upload a category imageprestashop resizes the image and saves it in several sizes in thefolder .../img/cthe name of the picture starts with i think the product id or the product name followed by small/medium/thumb... and .jpgThe produktimage will also be resized but saved in the folder .../img/pThe imagename consists of i think the product id or the produkt name and a - AND a number that is stored in the mysql table and small/medium/thumb... .jpgIf you have uploaded 215 produktimages through the adminproduktpage the next uploaded image will get the number 216 in the imagename.This number in the productimagename takes in count that there could be several images for one product - an imagename has to be unique.The original uploaded picture will also be renamed and stored in these folders.Your uploaded image with the imagename you gave it will be renamed and stored on the server.Prestashop knows only the renamed image.That means that if you hit the regenerate thumbnails button in the admin->preferences->image panelprestashop takes the renamed original size image and regenerates the thumbnails from this image.Conclusion:There is no "easy" way to upload the product/category images. If you have only a few images to upload than try to download the.../img/c and the .../img/p folder,overwrite the images that need to be changed and upload them back. For my shop has the same images for the product and the categoryand there will be no second or third productimageand the category and the product have the same idhttp://www.koenigsbanner.dei have patched the prestashop code to take the same pictures for category and product and dont use the extra number in the name.Then i upload my original images in an extra folder and convert them with an extra php script and an csv database file telling the original jpg name and the name/productid/categoryid for the converted image file.That sounds complicated - every shop / shopowner / shopcoder has his/her own thoughts about the best conclusions for a shop.So tell us your idea for imagehandling for pretashop. Friedbert Link to comment Share on other sites More sharing options...
horns Posted November 22, 2009 Author Share Posted November 22, 2009 Hi Friedbert,When I upload a category photo it says it has been sucessful but I cannot find it in the img / pRegardsPaul Link to comment Share on other sites More sharing options...
horns Posted November 22, 2009 Author Share Posted November 22, 2009 Hi Friedbert,I do not understand why it is so difficult to upload a photo. Can you explain what I need to do, thankyou.RegardsPaul Link to comment Share on other sites More sharing options...
FBert Posted November 22, 2009 Share Posted November 22, 2009 HelloCould it be that your img folder and all folders in it arn't writable?They have to be chmod 777 rwxrwxrwxFriedbert Link to comment Share on other sites More sharing options...
TropischBruin Posted November 23, 2009 Share Posted November 23, 2009 Please do NOT open 2 topic about the same issue!Continue Here! Link to comment Share on other sites More sharing options...
abdulrabbaazab Posted August 21, 2012 Share Posted August 21, 2012 i am literally going crazy here guys hehe really! why cant i see my images that i written the url in the csv file ? however i can see the rest of the fields but not the images ? please help some one? i think its to do with presta shop renaming the images ? 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