Tafou Posted May 21, 2012 Share Posted May 21, 2012 Hi all! I try to extend the AdminImportController to add some custom fields but I got the following error: PHP Fatal error: Call to private method AdminImportControllerCore::setEntityDefaultValues() from context 'AdminImportController' in /[...]/override/controllers/admin/AdminImportController.php on line 43 Here the 43th line of my override: AdminImportController::setEntityDefaultValues($product); So, the script blocks because it cannot access to the function setEntityDefaultValues which is defined as private in AdminImportController.php My question: do I duplicate every private function in my override even if I don't edit it? Thanks for your help! Link to comment Share on other sites More sharing options...
Tafou Posted May 21, 2012 Author Share Posted May 21, 2012 Finally I duplicate private functions and replace "private" by "public". Link to comment Share on other sites More sharing options...
indesign47 Posted April 16, 2013 Share Posted April 16, 2013 (edited) @Tafou Have you find a way to extend the AdminImportController in PS 1.5.3 ? Now functions are already public. Have you duplicate all functions ? I have succes with the override but I can't see Available fields of my new entities. Thanks PS : Tu es français ? Edited April 16, 2013 by indesign (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts