/** * Retrives initialization array for custom report option * @return array */ public function getCustomOptionsRequired() { $array = parent::getCustomOptionsRequired(); $include = Mage::getModel('advancedreports/system_config_source_include'); $skutypes = Mage::getSingleton('advancedreports/system_config_source_skutype')->toOptionArray(); $addArray = array(array('id' => 'include_refunded', 'type' => 'select', 'args' => array('label' => $this->_helper()->__('Include refunded items'), 'title' => $this->_helper()->__('Include refunded items'), 'name' => 'include_refunded', 'values' => $include->toOptionArray()), 'default' => '1'), array('id' => self::OPTION_SALES_GROUPED_SKU, 'type' => 'select', 'args' => array('label' => $this->_helper()->__('SKU usage'), 'title' => $this->_helper()->__('SKU usage'), 'name' => self::OPTION_SALES_GROUPED_SKU, 'class' => '', 'required' => true, 'values' => $skutypes), 'default' => AW_Advancedreports_Model_System_Config_Source_Skutype::SKUTYPE_SIMPLE)); return array_merge($array, $addArray); }
/** * Retrives initialization array for custom report option * @return array */ public function getCustomOptionsRequired() { $array = parent::getCustomOptionsRequired(); ///TODO Not implemented feature $addArray = array(array('id' => 'product_sku_limit', 'type' => 'text', 'args' => array('label' => $this->_helper()->__('The number of records in the SKU Advisor'), 'title' => $this->_helper()->__('The number of records in the SKU Advisor'), 'name' => 'product_sku_limit', 'class' => '', 'required' => true), 'default' => '10')); return array_merge($array, $addArray); }
/** * Retrives initialization array for custom report option * @return array */ public function getCustomOptionsRequired() { $array = parent::getCustomOptionsRequired(); $skutypes = Mage::getSingleton('advancedreports/system_config_source_skutype')->toOptionArray(); $addArray = array(array('id' => 'advancedreports_bestsellers_options_bestsellers_count', 'type' => 'text', 'args' => array('label' => $this->_helper()->__('Products to show'), 'title' => $this->_helper()->__('Products to show'), 'name' => 'advancedreports_bestsellers_options_bestsellers_count', 'class' => '', 'required' => true), 'default' => '10'), array('id' => self::OPTION_BESTSELLER_GROUPED_SKU, 'type' => 'select', 'args' => array('label' => $this->_helper()->__('SKU usage'), 'title' => $this->_helper()->__('SKU usage'), 'name' => self::OPTION_BESTSELLER_GROUPED_SKU, 'class' => '', 'required' => true, 'values' => $skutypes), 'default' => AW_Advancedreports_Model_System_Config_Source_Skutype::SKUTYPE_SIMPLE)); return array_merge($array, $addArray); }