Ejemplo n.º 1
0
 /**
  * Retrive order statuses as options for select
  *
  * @see Mage_Adminhtml_Model_System_Config_Source_Order_Status:toOptionArray()
  * @return array
  */
 public function toOptionArray()
 {
     $options = parent::toOptionArray();
     array_shift($options);
     // Remove '--please select--' option
     return $options;
 }
Ejemplo n.º 2
0
 /**
  * Get the status option array
  * 
  * @return array
  */
 public function toOptionArray()
 {
     $optionsToBeUnset = array('pending_paypal', 'paypal_canceled_reversal', 'paypal_reversed', 'complete', 'unchanged', 'closed');
     $options = parent::toOptionArray();
     foreach ($options as $key => $option) {
         if (empty($option['value'])) {
             $options[$key]['label'] = Mage::helper('sofort')->__('Not update status');
         }
         if (in_array($option['value'], $optionsToBeUnset, true)) {
             unset($options[$key]);
         }
     }
     return $options;
 }
Ejemplo n.º 3
0
 public function toOptionArray()
 {
     $options = parent::toOptionArray();
     array_shift($options);
     return $options;
 }