Ejemplo n.º 1
0
 public function finalizeConfig()
 {
     parent::finalizeConfig();
     $helper = Mage::helper('customgrid');
     if ($this->getIsUseConfigField()) {
         $this->addCustomParam('use_config_filter', array('label' => $helper->__('Filter on "Use Config"'), 'description' => $helper->__('Choose "Yes" to filter values that either use config or not. Else, the filter type will depend on the type of the field'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 10);
         $this->addCustomParam('use_config_prefix', array('label' => $helper->__('Config Values Prefix'), 'description' => $helper->__('Prefix that will be prepended to the values coming from config'), 'type' => 'text', 'value' => ''), 20);
         $this->addCustomParam('use_config_suffix', array('label' => $helper->__('Config Values Suffix'), 'description' => $helper->__('Suffix that will be appended to the values coming from config'), 'type' => 'text', 'value' => ''), 30);
         if (!$this->getWarning()) {
             $this->setWarning($helper->__('Sorting does not take config values into account, so that products that use config may not be sorted consistently'));
         }
         $this->setCustomParamsWindowConfig(array('height' => 280), true);
     }
     return $this;
 }