Jump to content

Best way to import images


jobim
 Share

Recommended Posts

Hi, I'm integrating an ERP with prestashop. I'm writing the products directly in the database, but  how can I import images

from an existing url?

Thank you very much,

P.

  • Like 1

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Hi, in my solution:

1- Pictures have names as 'product.reference'.jpg and are puted somwhere by FTP (all pictures in one folder)

By php script:

2- I'm looking for images types and dimentions at a table image_type

3- Getting picture by picture from FTP location, resize it to fit dimentions from table, changeing they name to

id_product-id_picture_-picture_type.jpg and puuting it to folder PRESTA_BASE/img/p (yes Im using old image storage type)

4- Then I putting image info into prefix_image, prefix_image_lang and prefix_image_shop tables

END

All working fine for me. I think better solution is use Presta Image controller - but I dont know how.

Anyone know??

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More