Answer the question
In order to leave comments, you need to log in
How to display a module on the product page of OpenCart 3.0.3.2?
Good afternoon!
Tell me how you can display an arbitrary module on the product page in a specific place?
Found such example of implementation, but there is an error. No module settings, does not understand the meaning of two variables.
$this->load->model('extension/module/scrfaq');
$data['my_module'] = $this->load->controller('extension/module/scrfaq');
How to do it right? thank!
Answer the question
In order to leave comments, you need to log in
You can pass data to the controller:
$data['my_module'] = $this->load->controller('extension/module/scrfaq', array('foo'=>'bar', 'foo2'=>'bar2'));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question