public function display($cachable = false, $urlparams = false)
 {
     parent::display($cachable, $urlparams);
     // set toolbar items
     JToolbarHelper::title(JText::_('PLG_ZOOCART_CONFIG_' . strtoupper($this->resource_name)));
     // set toolbar items
     $this->app->toolbar->addNew();
     $this->app->toolbar->editList();
     //$this->app->toolbar->custom('docopy', 'copy.png', 'copy_f2.png', 'Copy');
     $this->app->toolbar->deleteList();
     $this->_getOrdering();
     $this->beforeListDisplay();
     // Display
     $this->getView()->setLayout('default')->display();
 }
 public function display($cachable = false, $urlparams = false)
 {
     // make sure user is logued in
     if (!$this->app->user->get()->id) {
         $this->setRedirect($this->app->link(array('option' => 'com_users', 'view' => 'login', 'return' => base64_encode(JURI::current())), false), JText::_('PLG_ZOOCART_ERROR_LOGIN_REQUIRED'), 'notice');
         return;
     }
     parent::display($cachable, $urlparams);
     // Display
     $this->getView()->setLayout('default')->display();
 }