I’ve this code in a module I’ve just installed but I have no support on this code anymore (company is gone)
$status_options = Mage::getModel("sales/order_status")->getCollection()
I’ve this error message:
Fatal error: Call to a member function toOptionArray() on a non-object in /home/...../Helper/Import/Paymentmethods.php on line 82
I’ve seen on this page http://magentodocs.org/184.108.40.206/d4/d79/class_mage___sales___model___resource___order___status___collection.php and created the file on the server in magento/app/code/core/Mage/Sales/Model/Resource/Order/Status/Collection.php since in my Magento version (220.127.116.11) this file doesn’t exists.
Unfortunately this doesn’t fix the problem, I’ve still the same fatal error.
Since I’m a newbie in Magento (second week on it) but I’ve a little knowledge on Zend Framework, I don’t know how to get it to work. Do I have to add this module in a config.xml or somewhere else so Magento will use it ?
Thank you for your help.