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.

layouts

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

layouts removed if

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

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -