public function renderDetails($tpl = null) { $productModel = new JeproshopProductModelProduct(); $this->products = $productModel->getProductList(); $this->pagination = $productModel->getPagination(); if ($this->getLayout() != 'modal') { $this->addToolBar(); $this->sideBar = JHtmlSidebar::render(); } parent::display($tpl); }