HarryCom Posted September 1, 2013 Share Posted September 1, 2013 Hello, I would like to understand how PrestaShop generates paths and names of the product images. I have a product ID 9 with img/p/9/9-large_dm.jpg paths and names. I have a product ID 1, I have inserted an image, then I deleted it, I upload a new image and now the paths and names is img/p/1/0/10-large_dm.jpg Why? Link to comment Share on other sites More sharing options...
bellini13 Posted September 2, 2013 Share Posted September 2, 2013 Since a product can have more then 1 image, then image is not stored using the product name, but rather Prestashop assigns a unique Id to each image. So if you upload a new image, and Prestashop assigns the Image Id as 123, then Prestashop will store the image file name as... /img/p/1/2/3/123.jpg All product thumbnails will be saved into the same folder. Link to comment Share on other sites More sharing options...
HarryCom Posted September 2, 2013 Author Share Posted September 2, 2013 Thank you! 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