Не знаю насколько правильно, проблем не обнаружил, пусть старшие товарищи поправят если что не так. Попробуйте так:
- в файле admin/controller/extension/extension/module.php
найти:
foreach ($modules as $module) {
$module_data[] = array(
'module_id' => $module['module_id'],
'name' => $module['name'],
'status' => (isset($setting_info['status']) && $setting_info['status']) ? $this->language->get('text_enabled') : $this->language->get('text_disabled'),
'edit' => $this->url->link('extension/module/' . $extension, 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $module['module_id'], true),
'delete' => $this->url->link('extension/extension/module/delete', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $module['module_id'], true)
);
}
заменить на:
foreach ($modules as $module) {
if ($module['setting']) {
$setting_info = json_decode($module['setting'], true);
} else {
$setting_info = array();
}
$module_data[] = array(
'module_id' => $module['module_id'],
'name' => $module['name'],
'status' => (isset($setting_info['status']) && $setting_info['status']) ? $this->language->get('text_enabled') : $this->language->get('text_disabled'),
'edit' => $this->url->link('extension/module/' . $extension, 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $module['module_id'], true),
'delete' => $this->url->link('extension/extension/module/delete', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $module['module_id'], true)
);
}