I looked for a way to create an option list of order states and statuses but couldn't find a way. I did found something about a statusfactory but couldn't find a way to get a list out of it and especially of the states.
I need a list of available states and a list of available statuses. Can someone help me or point me in the right direction?