olejer Posted May 27, 2015 Share Posted May 27, 2015 Hello, we are implementing a script which should read products from XML and insert into Prestashop database. We have inserted all information about product except images. From XML we can read direct URL to image, but we do not know how exactly it should be inserted (which php scripts) should be invoked in order to insert image like we do from GUI. The problem is that prestashop does not store exact path to image, but generate URL somehow. Unfortunately we cannot understand this logic. If you have any experience with such activity please share. Thanks in advance. Link to comment Share on other sites More sharing options...
tuk66 Posted May 28, 2015 Share Posted May 28, 2015 You can learn from /controllers/admin/AdminImportController.php, productImport function. 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