Example #1
0
 protected function _prepareCollection()
 {
     $todolistCollection = Mage::helper('inventorycustomer/todolist')->getTodolist();
     // Sort grid data
     $this->_sortCollection($todolistCollection);
     $this->setCollection($todolistCollection);
     return parent::_prepareCollection();
 }
Example #2
0
 protected function _prepareCollection()
 {
     $customersCollection = Mage::helper('inventorycustomer/allcustomers')->getCustomersHaveCompleteOrder();
     if (Mage::getSingleton("inventorycustomer/session")->getData("searchValue")) {
         $searchValue = Mage::getSingleton("inventorycustomer/session")->getData("searchValue");
         $customersCollection->addAttributeToFilter(array(array('attribute' => 'email', 'like' => '%' . $searchValue . '%'), array('attribute' => 'telephone', 'like' => '%' . $searchValue . '%')));
         Mage::getSingleton("inventorycustomer/session")->setData("searchValue", null);
     }
     $this->setCollection($customersCollection);
     return parent::_prepareCollection();
 }
 protected function _prepareCollection()
 {
     $normalCustomersCollection = Mage::helper('inventorycustomer/customertypes')->getNormalCustomers();
     $this->setCollection($normalCustomersCollection);
     return parent::_prepareCollection();
 }
Example #4
0
 protected function _prepareCollection()
 {
     $customerCollection = Mage::helper('inventorycustomer/returningcustomers')->getCustomersHaveCompleteOrder($this->getRequestData());
     $this->setCollection($customerCollection);
     return parent::_prepareCollection();
 }
Example #5
0
 protected function _prepareCollection()
 {
     $interactionCollection = Mage::helper('inventorycustomer/manageinteractions')->getListInteractions();
     $this->setCollection($interactionCollection);
     return parent::_prepareCollection();
 }