Jump to content

Paths and names of the product images


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...