Hi by below code you can get the all statuses of a particular state
$complete_statuses = Mage::getResourceModel( 'sales/order_status_collection' )->joinStates()->addFieldToFilter('state','complete');
foreach ($complete_statuses as $complete_statuses_array ){
$stausarray[] = $complete_statuses_array->getStatus();
}
in this i have get the statuses of a complete state. You can replace state
in ->addFieldToFilter('state','complete'); according to your needs
$complete_statuses = Mage::getResourceModel( 'sales/order_status_collection' )->joinStates()->addFieldToFilter('state','complete');
foreach ($complete_statuses as $complete_statuses_array ){
$stausarray[] = $complete_statuses_array->getStatus();
}
in this i have get the statuses of a complete state. You can replace state
in ->addFieldToFilter('state','complete'); according to your needs
No comments:
Post a Comment