alberto510a Posted June 30, 2013 Share Posted June 30, 2013 Good afternoon, I'm developing a script to import automatically csv files of products,categories...that I have in admin/import of prestashop I'm following a guide of this page (It's spanish guide, you can use translator of google): http://programadorphp.es/script-para-importar-productos-y-categorias-en-prestashop#comment-14249 But this guide is adapted to work in 1.4 and I don't get to run it with 1.5 I need that someone help me with this it's very important. Thanks. Link to comment Share on other sites More sharing options...
PascalVG Posted June 30, 2013 Share Posted June 30, 2013 Did you check this already?? 1.5 official user guide: (English, but some examples of csv file may help you) http://doc.prestashop.com/display/PS15/Understanding+The+Advanced+Parameters#UnderstandingTheAdvancedParameters-CSVImport My 2 cents, pascal Link to comment Share on other sites More sharing options...
Kharfud Posted April 30, 2014 Share Posted April 30, 2014 (edited) Hi ! This doc is pointless here : the problem is scripting an automated import, not using the GUI. I've run through the same problem while coding an automated interface between a CRM database and a PS 1.5. First importing CRM data, then formatting the CSV to be imported by PS. The AdminController not suprisingly crashes for not being logged in. How is it possible to do such a thing in a PHP script ? Worked well in previous releases... The exact error is : Fatal error: Call to a member function isLoggedBack() on a non-object in [...]\classes\controller\AdminController.php on line 1885 Best regards, Romain Edited April 30, 2014 by Kharfud (see edit history) Link to comment Share on other sites More sharing options...
manel10_12 Posted July 29, 2014 Share Posted July 29, 2014 (edited) Hi Kharfud, try with that line of code before calling the productImport function and calling AdminImportController class: Context::getContext()->employee = new Employee(write here the id of the employee you are logged with); Manel www.Hostienda.com Edited July 29, 2014 by manel10_12 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts