php - Does not show newly created module in Layout -
i'm trying list newly created module(account_test)
copied "account"
module in opencart 2.x (account
module shows in backend system->design->layouts-> edit home layout
). have duplicated account php & tpl files account_test & tpl files , change references account
account_test
in both admin & catalog
module/language/view
folders.
also, noticed in admin\controller\design\layout.php
if statement add account & category
modules layouts setting:
if ($this->config->has($code . '_status') || $module_data) { $data['extensions'][] = array( 'name' => $this->language->get('heading_title'), 'code' => $code, 'module' => $module_data ); }
if remove if condition :
$data['extensions'][] = array( 'name' => $this->language->get('heading_title'), 'code' => $code, 'module' => $module_data );
it add modules layouts view, none of them working except old modules
stuck in few days, ideas list newly created module layouts admin section , front end?
is module installed or not? if followed correctly must listed in admin->extension->modules
. , there have first install , enable it. , make sure controller file named properly.
edit
$this->config->has($code . '_status')
checks whether module installed or not i.e. in setting table or not. check in setting table module code.
Comments
Post a Comment