shimony Posted December 2, 2011 Share Posted December 2, 2011 Hi, I am using PS 1.4.4.0. I am using the default import tool with CSV files and i am putting multiple images URLs. Everything works great!, only none of the images is set as cover and i need to do it manually after the import. Is there a way to set a cover bit or something? shouldn't it automatically set the first image as cover? The import i am doing is for new products. Thank you. 1 Link to comment Share on other sites More sharing options...
phrasespot Posted December 4, 2011 Share Posted December 4, 2011 none of the images is set as cover and i need to do it manually after the import. UPDATE `PREFIX_image` SET `cover`=1 WHERE `position`=1 Backup first. Link to comment Share on other sites More sharing options...
shimony Posted December 4, 2011 Author Share Posted December 4, 2011 Thanks, but im not sure on which file should i update this. Also, is it possible to set it with SQL script? i mean, is there a record for it in the DB? which table? Thank you, Eyal. Link to comment Share on other sites More sharing options...
shimony Posted December 4, 2011 Author Share Posted December 4, 2011 Never mind - i did it with SQL: UPDATE `DBNAME`.`ps_image` SET `cover` = '1' WHERE `ps_image`.`id_product` =PROD_ID AND `ps_image`.`position` =1 LIMIT 1 ; Works great! 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