Jump to content

Image location based on product ID


sackling

Recommended Posts

I am trying to figure out how the image folder works for the purpose of uploading images in bulk and changing the database.

 

 

I at first thought that if I wanted to add an image to product ID 25 I would put the image in folder: img/p/2/5 

 

But that does not seem to be the case. 

 

How is the folder decided? 

 

I am looking at a fresh install of prestashop. and if I go to product_id 2 there are 3 demo images in there

 

their folders are:

 

img/p/5/5.jpg

img/p/6/6.jpg

img/p/7/7.jpg

 

 

If I wanted to upload 100 products with 2-3 images each. How can I know which folders they should belong to? 

 

 

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...