public function __construct()
 {
     parent::__construct();
     $this->setId('customerGrid');
     $this->setUseAjax(true);
     $this->setDefaultSort('entity_id');
     $this->setSaveParametersInSession(true);
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     //        $this->_attributeCollection = Mage::getModel('eav/entity_attribute')->getCollection();
     $this->_attributeCollection = Mage::getModel('customer/attribute')->getCollection();
     $this->_attributeCollection->addFieldToFilter('is_user_defined', 1);
     // 'is_filterable_in_search' used to setting "Show on Manage Customers Grid"
     $this->_attributeCollection->addFieldToFilter('is_filterable_in_search', 1);
     $this->_attributeCollection->addFieldToFilter('entity_type_id', Mage::getModel('eav/entity')->setType('customer')->getTypeId());
     $this->_attributeCollection->getSelect()->order('sorting_order');
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     //        $this->_attributeCollection = Mage::getModel('eav/entity_attribute')->getCollection();
     $this->_attributeCollection = Mage::getModel('customer/attribute')->getCollection();
     $this->_attributeCollection->getSelect()->join(Mage::getConfig()->getTablePrefix() . 'le_ajaxlogin_attributes', 'main_table.attribute_id =' . Mage::getConfig()->getTablePrefix() . 'le_ajaxlogin_attributes.attribute_id', array('attribute_id'));
     $this->_attributeCollection->addFieldToFilter('is_user_defined', 1);
     // 'is_filterable_in_search' used to setting "Show on Manage Customers Grid"
     $this->_attributeCollection->addFieldToFilter('show_on_customer_grid', 1);
     $this->_attributeCollection->addFieldToFilter('entity_type_id', Mage::getModel('eav/entity')->setType('customer')->getTypeId());
     $this->_attributeCollection->getSelect();
 }
예제 #4
0
파일: Grid.php 프로젝트: AleksNesh/pandora
 public function __construct()
 {
     parent::__construct();
     $this->setId('customerGrid');
 }