MFLM Posted February 21, 2017 Share Posted February 21, 2017 Hi all I have Prestashop 1.6 and I will like import a csv file to insert or update the products. I have a script to upload via PHP the csv file and all works great, but in the case of images, the champ is not replace it, it's duplicated. How to do for replace the image URL or maybe not change it if is the same URL? Thanks Link to comment Share on other sites More sharing options...
Daresh Posted February 21, 2017 Share Posted February 21, 2017 The url of the original image is not stored anywhere so you can't tell if it's the same image. In cases like that I usually just import images only for the first time, and update other fields. Or if the images change, you can set the import to remove previous images from products. Link to comment Share on other sites More sharing options...
MFLM Posted February 21, 2017 Author Share Posted February 21, 2017 The url of the original image is not stored anywhere so you can't tell if it's the same image. In cases like that I usually just import images only for the first time, and update other fields. Or if the images change, you can set the import to remove previous images from products. Thanks The only way is in the first time import all the products with images and the UPDATES without the field image. Like that, I need modify the PHP archive. Or maybe Can I send the URL like NULL? 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