예제 #1
0
 public function initConfig()
 {
     parent::initConfig();
     $helper = Mage::helper('customgrid');
     if (!Mage::app()->isSingleStoreMode()) {
         $stores = Mage::getModel('adminhtml/system_config_source_store')->toOptionArray();
         array_unshift($stores, array('value' => '0', 'label' => $helper->__('All')));
         $this->addCustomParam('store_id', array('label' => $helper->__('Store Views'), 'type' => 'multiselect', 'values' => $stores, 'value' => 0, 'size' => 4), 10);
     }
     $this->addCustomParam('only_shared', array('label' => $helper->__('Only Shared Wishlists'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 20);
     $this->setCustomParamsWindowConfig(array('height' => 280));
     return $this;
 }
예제 #2
0
 public function initConfig()
 {
     parent::initConfig();
     $helper = Mage::helper('customgrid');
     if (!Mage::app()->isSingleStoreMode()) {
         $stores = Mage::getModel('adminhtml/system_config_source_store')->toOptionArray();
         array_unshift($stores, array('value' => '0', 'label' => $helper->__('All')));
         $this->addCustomParam('store_id', array('label' => $helper->__('Store Views'), 'type' => 'multiselect', 'values' => $stores, 'value' => 0, 'size' => 4), 10);
     }
     $this->addCustomParam('include_inactive', array('label' => $helper->__('Include Inactive Carts'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 20);
     $this->addCustomParam('only_logged_in', array('label' => $helper->__('Only Logged In Carts'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 30);
     $this->addCustomParam('exclude_child_items', array('label' => $helper->__('Exclude Child Items'), 'description' => $helper->__('Eg : simple products associated to their configurable parents'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 40);
     $this->setCustomParamsWindowConfig(array('height' => 330));
     return $this;
 }
예제 #3
0
 public function initConfig()
 {
     parent::initConfig();
     $helper = Mage::helper('customgrid');
     $this->addCustomParam('separator', array('label' => $helper->__('Categories Separator'), 'description' => $helper->__('Indicate here the string that will be used each product\'s category values. If none is set, ", " will be used'), 'type' => 'text', 'value' => ''), 10);
     $this->addCustomParam('full_paths', array('label' => $helper->__('Display Full Paths'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 20);
     $this->addCustomParam('level_separator', array('label' => $helper->__('Levels Separator'), 'description' => $helper->__('Indicate here the string that will be used to separate categories in each full path. If none is set, " > " will be used'), 'type' => 'text', 'value' => '', 'depends' => array('full_paths' => array('value' => 1))), 30);
     $this->addCustomParam('ascent_limit', array('label' => $helper->__('Ascent Limit Level'), 'description' => $helper->__('If needed, indicate here the level on which to stop ascent for the full paths display. One level will be displayed in all cases, even if the concerned category has a lower level'), 'type' => 'text', 'value' => '', 'depends' => array('full_paths' => array('value' => 1))), 40);
     $this->addCustomParam('display_ids', array('label' => $helper->__('Display IDs'), 'description' => $helper->__('Choose "Yes" to display IDs instead of names'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 50);
     $this->addCustomParam('boolean_filter', array('label' => $helper->__('With/Without Filter'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 60);
     $this->addCustomParam('filter_mode', array('label' => $helper->__('Filter Mode'), 'type' => 'select', 'source_model' => 'customgrid/system_config_source_product_categories_filter_mode', 'value' => self::FILTER_MODE_ONE_CHOOSEN, 'depends' => array('boolean_filter' => array('value' => 0))), 70);
     $this->addCustomParam('custom_filter_operator', array('label' => $helper->__('Custom Filter - Operator'), 'description' => $helper->__('Filtered products will have to belong to a number of categories amongst the chosen ones, that can be verified using this value and the one from the "Custom Filter - Number" field'), 'type' => 'select', 'values' => $this->_getCustomFilterOperators(true), 'depends' => array('boolean_filter' => array('value' => 0), 'filter_mode' => array('value' => self::FILTER_MODE_CUSTOM))), 80);
     $this->addCustomParam('custom_filter_number', array('label' => $helper->__('Custom Filter - Number'), 'description' => $helper->__('Filtered products will have to belong to a number of categories amongst the chosen ones, that can be verified using this value and the one from the "Custom Filter - Operator" field'), 'type' => 'text', 'depends' => array('boolean_filter' => array('value' => 0), 'filter_mode' => array('value' => self::FILTER_MODE_CUSTOM))), 90);
     $this->setCustomParamsWindowConfig(array('height' => 520));
     return $this;
 }