public function getContent() { $this->context->controller->addCSS($this->_path . '/views/css/backoffice.css'); $this->context->controller->addJS($this->_path . '/views/js/backoffice.js'); Media::addJsDef(array('cm_url' => Configuration::get('CONVERMAX_URL'))); $this->context->smarty->assign(array('url' => Configuration::get('CONVERMAX_URL'), 'module_dir' => $this->_path, 'registered' => $this->registered)); if ($this->registered) { $convermax = new ConvermaxAPI(); $indexed_items = $convermax->getIndexedProducts(); $total_items = Cmsearch::getProductsCount(); $cron_url = $this->context->shop->getBaseURL() . 'modules/convermax/cron.php?key=' . Configuration::get('CONVERMAX_CRON_KEY'); $this->context->smarty->assign(array('indexed_items' => $indexed_items, 'total_items' => $total_items, 'cron_url' => $cron_url)); } return $this->postProcess() . $this->context->smarty->fetch(dirname(__FILE__) . '/views/templates/admin/configuration.tpl'); }