constantina Posted January 16, 2013 Share Posted January 16, 2013 Hi, I installed a clean new version of prestashop 1.5. Everything was almost alright until i try to import my old 1.4 CSV files. I've updated files according to 1.5 columns. But i still had issues with importing products properly. 1- All products go under home. I tried both writing category IDs and category names. No way, everything's under home. 2- No product images. I gave img URL both as http://domain.com/folder/imaj.jpg and ../folder/imaj.jpg and my imgfolder and custom imgfolder permissions are 777. So, at last, i have products without images under home category instead of under custom category when i import my product CSV file. Is there anyone experienced a problem like this, or anyone has to say anything? Server information Server information: Linux #1 SMP Tue Nov 9 13:34:42 EST 2010 i686 Server software version: Apache/2.2.3 (CentOS) PHP version: 5.2.16 Memory limit: 48M Max execution time: 30 Database information MySQL version: 5.1.54 MySQL engine: InnoDB Store information Prestashop version: 1.5.3.1 Current theme in use: default Link to comment Share on other sites More sharing options...
eadi Posted January 16, 2013 Share Posted January 16, 2013 I have exactly the same problem. Didn't find any solution, working for hours. 1 Link to comment Share on other sites More sharing options...
eadi Posted January 16, 2013 Share Posted January 16, 2013 (edited) I found the solution: 1.for category : in csv type Categories (x,y,z...) instead of Categories (x,y,z,...) 2. I found a fix for images: replace content of controllers/admin/AdminImportController.php with https://github.com/P...e3ebe473233d07. This works for me. Find the github link here: http://www.prestashop.com/forums/topic/214816-153x-importing-with-csv-doesnt-create-imgpxxxxxjpg-and-imgtmpproduct-mini-xxxjpg/page__p__1060749__hl__category__fromsearch__1#entry1060749 Edited January 16, 2013 by eadi (see edit history) 2 Link to comment Share on other sites More sharing options...
constantina Posted January 17, 2013 Author Share Posted January 17, 2013 Hello eadi, Thanks for sharing your solution. Can you please explain "1.for category : in csv type Categories (x,y,z...) instead of Categories (x,y,z,...)". I don't understand it. Thanks Link to comment Share on other sites More sharing options...
constantina Posted January 17, 2013 Author Share Posted January 17, 2013 Yeah, editing AdminImportController.php also worked for me. Thank you very much! Link to comment Share on other sites More sharing options...
[email protected] Posted January 18, 2013 Share Posted January 18, 2013 (edited) Hello eadi, please explain "in csv type Categories (x,y,z...) instead of Categories (x,y,z,...)" Is it just a matter of a comma in the field? Thanks Edited January 18, 2013 by [email protected] (see edit history) 1 Link to comment Share on other sites More sharing options...
[email protected] Posted January 18, 2013 Share Posted January 18, 2013 (edited) I've found this solution: The problem is that the $temp var isn't being assigned, so no file is opened. To solve it, change this line: $fd = fopen($temp, 'r'); By $fd = fopen(_PS_UPLOAD_DIR_.$uniqid, 'r'); in AdminImportController.php file Has worked for me on Prestashop 1.5.3. Edited January 25, 2013 by [email protected] (see edit history) 1 Link to comment Share on other sites More sharing options...
ricky11 Posted January 25, 2013 Share Posted January 25, 2013 Still not understand how this was solved... is this a import bug? Link to comment Share on other sites More sharing options...
ricky11 Posted January 25, 2013 Share Posted January 25, 2013 Can't seem to import products to certain categories, its always going to HOME category! Any way out? Link to comment Share on other sites More sharing options...
[email protected] Posted January 25, 2013 Share Posted January 25, 2013 Can't seem to import products to certain categories, its always going to HOME category! Any way out? I think it's a bug. Try the solution I've suggested: you have to change the code in AdminImportController.php file. Link to comment Share on other sites More sharing options...
ricky11 Posted January 26, 2013 Share Posted January 26, 2013 Thanks solution worked. hope they resolve it in future releases. 1 Link to comment Share on other sites More sharing options...
netwide Posted January 31, 2013 Share Posted January 31, 2013 this works. You need to apply both fixes in this thread for it to work properly. Link to comment Share on other sites More sharing options...
e.negrobov Posted February 14, 2013 Share Posted February 14, 2013 Piemant, thank you for the solution. I spent 3 days trying to upload images and one day on cateories without any results. You are the hero 1 Link to comment Share on other sites More sharing options...
Maury Markowitz Posted February 15, 2013 Share Posted February 15, 2013 People in this thread: are you saying that *no* images were uploading? I do get *most* images, but *some* do not appear. I cannot see a pattern. Link to comment Share on other sites More sharing options...
eadi Posted February 15, 2013 Share Posted February 15, 2013 Hello eadi, Thanks for sharing your solution. Can you please explain "1.for category : in csv type Categories (x,y,z...) instead of Categories (x,y,z,...)". I don't understand it. Thanks First line in csv. Take a look to at provided example in prestashop admin Link to comment Share on other sites More sharing options...
design4VIP Posted February 21, 2013 Share Posted February 21, 2013 thx, it's working on 1.5 but how to fix categories in 1.4.9.0? Link to comment Share on other sites More sharing options...
rasegan Posted February 21, 2013 Share Posted February 21, 2013 I found the solution: 1.for category : in csv type Categories (x,y,z...) instead of Categories (x,y,z,...) 2. I found a fix for images: replace content of controllers/admin/AdminImportController.php with https://github.com/P...e3ebe473233d07. This works for me. Find the github link here: http://www.prestasho..._1#entry1060749 The link is not working, can you please tell me how i can edit the "controllers/admin/AdminImportController.php" its not working for me also. Thank you waiting to hear from some one. Link to comment Share on other sites More sharing options...
cutecat Posted March 8, 2013 Share Posted March 8, 2013 how can I upload more than 1 jpg file? I have more than 1 picture to upload. I have already uploaded to my server and only one picture was shown on my product. the other files are not imported to the product. Also I would need to import in the "Additional shipping cost (per quantity):". it does not have this too. For those who are having issue to upload their CSV, you need to go into controllers/admin/AdminImportController.php $fd = fopen($temp, 'r'); By $fd = fopen(_PS_UPLOAD_DIR_.$uniqid, 'r'); in AdminImportController.php file Which was stated by [email protected] Thanks piemant for that. Link to comment Share on other sites More sharing options...
cutecat Posted March 13, 2013 Share Posted March 13, 2013 any updates for Additional shipping cost (per quantity): to be added into CSV import? Link to comment Share on other sites More sharing options...
Dmit Posted April 9, 2013 Share Posted April 9, 2013 Import of products in the category with the same name - if you go knowing the product he is in the right category, but if you go through the menu in this category is writing that no items in this category????? Prestashop 1.5.4 Link to comment Share on other sites More sharing options...
47diamonddistrict.com Posted May 20, 2013 Share Posted May 20, 2013 Upgrade to 1.5.4.1 fix that issue for me. Link to comment Share on other sites More sharing options...
rexie123 Posted May 24, 2013 Share Posted May 24, 2013 how can I upload more than 1 jpg file? I have more than 1 picture to upload. I have already uploaded to my server and only one picture was shown on my product. the other files are not imported to the product. Also I would need to import in the "Additional shipping cost (per quantity):". it does not have this too. For those who are having issue to upload their CSV, you need to go into controllers/admin/AdminImportController.php $fd = fopen($temp, 'r'); By $fd = fopen(_PS_UPLOAD_DIR_.$uniqid, 'r'); in AdminImportController.php file Which was stated by [email protected] Thanks piemant for that. on what line in php is it? Link to comment Share on other sites More sharing options...
benjamin utterback Posted May 24, 2013 Share Posted May 24, 2013 Hi rexie123, what version of PrestaShop are you using? Link to comment Share on other sites More sharing options...
rexie123 Posted May 24, 2013 Share Posted May 24, 2013 Hi rexie123, what version of PrestaShop are you using? hi have Prestashop v1.5.3.1 Link to comment Share on other sites More sharing options...
rexie123 Posted May 26, 2013 Share Posted May 26, 2013 als ik de import doe in prestashop komt het wel in de database maar niet in de shop?? Link to comment Share on other sites More sharing options...
Recommended Posts