A
A
Aalexey92FD2021-08-22 15:42:06
PHP
Aalexey92FD, 2021-08-22 15:42:06

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

1 answer(s)
O
opencartbot, 2021-08-25
@opencartbot

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 question

Ask a Question

731 491 924 answers to any question