Answer the question
In order to leave comments, you need to log in
How to clone modules in Opencart?
Hello. Has everyone seen the standard category module? It displays a list of categories in the directory: screenshot https://yadi.sk/i/55DBxV863JYGxK
I need to clone the module. BUT! Not completely all the functionality (table in the database, adding and deleting, etc.) but just modifying the output of the module. That is, for the main one I need this view: screenshot https://yadi.sk/i/hvr1Yk9h3JYHBV , and for the catalog pages a list view: screenshot https://yadi.sk/i/55DBxV863JYGxK
I created the following files:
module view file: catalog \view\theme\default\template\extension\module\myM.tpl
module controller: catalog\controller\extension\module\myM.php
language file: catalog\language\russian\module\myM.php
module view file for admin panel: admin\view\template\module\myM.tpl
module controller for admin panel: admin\controller\module\myM.php module
language file for admin panel: admin\language\russian\module\myM. php I did it
roughly according to the instructions: s-engineer.ru/sozdaem-modul-v-opencart-2-x-ocmod
As a result, it turned out that the mod appeared in the admin panel in the "Modules" section: https://yadi.sk/i/ JZzI9kD93JYHwX. It can be activated or deactivated.
But when adding a module to the template, it is not displayed: https://yadi.sk/i/8k4Inlo53JXJ9p
I would be grateful for any advice. Thanks in advance for all your help.)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question