wstar Posted July 9, 2015 Share Posted July 9, 2015 I have a large about of product images coming from our old cart. I added a few test products and I see the images going into the "p" folder. But I do not understand the filing structure within it. Can someone explain?For example, I just added a new image. and the directory is img/p/4/2/IMAGE. Link to comment Share on other sites More sharing options...
jgamio Posted July 10, 2015 Share Posted July 10, 2015 The structure is a little complicate When you add a image to the product these image has an id you can check out the tables The structure use the image id for example your image is id = 42 In these structures of chapter Prestashop create all the sizes for these image id. You can see the image sizes on preferences images to know wich name is asociate for each size You can't just upload images you need add these to the tables of images, create the relation with the product and the you can direct copy the images to the chapters You can copy these images with the import product tool use copy on a directory and use the list of images to update all the products these is the easy way if you dont code Link to comment Share on other sites More sharing options...
bedford Posted May 6, 2016 Share Posted May 6, 2016 Hi There, I'm new in Prestashop, migrating everything from an old OsCommerce site to PS 1.6 As far as I understand, each product image has his own ID. This ID is used in structure. Say image ID 268 then this image is on img/p/2/6/8/268.jpg Sor path is the ID (2/6/8) inside there is the filename with same ID. This structure is very cleaver as you break easily the limits of filesystems. Great point to PS developers. If you import from old site, you have to create the file structure for every image, then also insert values in database. Then you can generate miniatures in backend. Hope this helps. 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