Jump to content

How can I import images of products? Where are the product images stored?


Recommended Posts

Hi,

 

I am trying to use import feature to create products for my shop, but I can't find a way to import images. Does anyone know how to do that? If the back office doesn't support that, I can write some script to do it myself if I know where the images are stored. It doesn't seem to be in the database...

 

Any help is really appreciated!

 

Thanks,

Henry

Link to comment
Share on other sites

Check http://doc.prestashop.com/display/PS16/CSV+Import+Parameters

So images can be imported from foolder on your server (full path like in example)

"Enabled";"Name";"Categories";"Price";"Tax rule ID";"Buying price";"On sale";"Reference";"Weight";"Quantity";"Short desc.";"Long desc";"Images URL"
1;"Test";"1,2,3";130;1;75;0;"PROD-TEST";"0.500";10;"'Tis a short desc.";"This is a long description.";"http://www.myprestashop/images/product1.jpg"
  • Like 2
Link to comment
Share on other sites

Images are stored in img folder, for example img/p/ contains product images. And in database there are image id's.

When you upload/import image it gets new id for example 256 and then Prestashop creates images for all types defined in

Back Office > Preferences > Images, and those images are stored in img/p/2/5/6/ folder , for example img/p/2/5/6/256-home_default.jpg.

 

For HTML try to wrap between double quotes or/ and use html codes for those characters. 

And test on local with small csv file.

Link to comment
Share on other sites

  • 9 years later...

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