scumdk Posted January 15, 2012 Share Posted January 15, 2012 Hi guys. Is it possible to change files of prestashop like "AdminImport.php" or others, so that i can import CSV files without name as a required field? I want to be able to update products with ID and active= 1 or 0 nothing else. If you know a module that can do this, please share :-) Thanks in advance for your help. Link to comment Share on other sites More sharing options...
Blulight Design Posted July 25, 2012 Share Posted July 25, 2012 (edited) Trying to figure this out as well Edited July 25, 2012 by tprnkstr (see edit history) Link to comment Share on other sites More sharing options...
kingcheetah Posted September 11, 2012 Share Posted September 11, 2012 yes I want this modified module (adminimport.php?) also. Has scumdk here a solution? Name as required must be replaced by id would be nice if you or someone can help me with this Link to comment Share on other sites More sharing options...
kingcheetah Posted September 12, 2012 Share Posted September 12, 2012 I've found a solution: Look for the following lines in AdminImport.php (in map /admin/tabs): case $this->entities[$this->l('Products')]: self::$validators['image'] = array('AdminImport', 'split'); $this->available_fields = array( and replace it with: case $this->entities[$this->l('Products')]: self::$required_fields = array('id'); self::$validators['image'] = array('AdminImport', 'split'); $this->available_fields = array( You see I've added 1 line: self::$required_fields = array('id'); Now you can import goods without the required name to import, only ID is required. I tested it and it works perfectly. 1 Link to comment Share on other sites More sharing options...
tomerg3 Posted September 12, 2012 Share Posted September 12, 2012 Why not simply add a new field to the CSV file with empty space as the name? Link to comment Share on other sites More sharing options...
Recommended Posts