Re: [CONTRIB] Maintenance Mode
Posted: Sun Apr 18, 2010 5:13 am
What does that mean? "too well" ? it either shows or it doesn'tsizzlingscience wrote:
I've installed the MOD but my maintenance page isn't showing too well
OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
What does that mean? "too well" ? it either shows or it doesn'tsizzlingscience wrote:
I've installed the MOD but my maintenance page isn't showing too well
Thank you - managed to change it now.migz wrote:Just edit the maintenance.tpl to fit with your theme
Code: Select all
<?php
class ControllerCommonMaintenance extends Controller {
public function index() {
$this->language->load('common/maintenance');
$this->document->title = $this->language->get('heading_title');
$this->data['charset'] = $this->language->get('charset');
$this->data['language'] = $this->language->get('code');
$this->data['direction'] = $this->language->get('direction');
$this->data['title'] = $this->language->get('heading_title');
$this->document->breadcrumbs = array();
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('common/maintenance'),
'text' => $this->language->get('text_maintenance'),
'separator' => FALSE
);
$this->data['breadcrumbs'] = $this->document->breadcrumbs;
$this->data['message'] = $this->language->get('text_message');
//$this->template = $this->config->get('config_template') . 'common/maintenance.tpl';
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/maintenance.tpl')) {
$this->template = $this->config->get('config_template') . '/template/common/maintenance.tpl';
} else {
$this->template = 'default/template/common/maintenance.tpl';
}
$this->children = array(
'common/header',
'common/footer'
);
if ($this->config->get('config_guest_checkout') != null) {
$this->response->setOutput($this->render(TRUE));
} else {
$this->render();
}
}
public function check() {
// Registry
$registry = new Registry();
if ($this->config->get('config_maintenance')) {
// User
if (file_exists(DIR_SYSTEM . 'helper/user.php')) {
require_once(DIR_SYSTEM . 'helper/user.php');
// Registry::set('user', new HelperUser());
$registry->set('user', new HelperUser());
} else {
require_once(DIR_SYSTEM . 'library/user.php');
// Registry::set('user', new User());
$registry->set('user', new User($registry));
}
if (!$this->user->isLogged()) {
return $this->forward('common/maintenance');
}
}
}
}
?>
Code: Select all
Fatal error: Call to a member function isLogged() on a non-object in C:\wamp\www\store\catalog\controller\common\maintenance.php on line 60
Please Qphoria, could you please re-upload your contribution. Now only is the installation manual. I have an older version and would like to use your contribution.Qphoria wrote:This is another free one as I think it should be part of OpenCart.
Supported OpenCart Versions:
================
v1.2.6, v1.2.7, v1.2.8, v1.2.9, v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.4.0, v1.4.4