I am working on an extension and i need an info how to get the status name by state code, is it possible ?
The picture is from the Admin's panel Order Statuses page.
How i can get the status name by state code, is it possible ?
I am working on an extension and i need an info how to get the status name by state code, is it possible ? The picture is from the Admin's panel Order Statuses page. How i can get the status name by state code, is it possible ? |
||||
|
No, because it is a 1:n association, there are multiple statuses per state. You can, however, get a list of all statuses that are assigned to a state
Update:According to your comments, you will need this:
(outputs the name of the default status for state with code |
|||||||||||||||||||||
|