Answer the question
In order to leave comments, you need to log in
Opencart 2 how to customize the execution order of modules?
I am writing a module for opencart that changes the title and description for pages by url because the SEO wants something strange.
you need the module to process the page last because on some pages other modules change the same parameters
Answer the question
In order to leave comments, you need to log in
1. If we are talking about ocmod extensions, remove redundant code in modules that operate on the same code sections.
2. If we are talking about modules, they are loaded like this:
$modules = $this->model_design_layout->getLayoutModules($layout_id, 'content_bottom');
foreach ($modules as $module) {
// Подгружаются модули
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question