Ok so I've made a quick module. All seems to be working fine, corn job is running, admin section working and logging is working fine. However the order status I've defined in my XML is not appearing in the back end.
.... <global> <sales> <order> <statuses> <pending_canceled translate="label"> <label>Timed Out</label> </pending_canceled> </statuses> <states> <canceled> <statuses> <pending_canceled/> </statuses> </canceled> </states> </order> </sales> ... </global> ...
I've been googeling around for a few hours now and have found very sparse resources on this. Some mention adding a dependency to
Mage_Sales and some mention having to now run this through PHP, but the only example of this I was able to find was a french article
Does anyone have an example of doing this in 1.9 (or 1.7 above I suppose). I get the feeling I'll need to run a script on install but I'm not sure how these install scripts run (if they're run once and its added, or if it needs to run constantly, or remove on uninstall...)