opencart 1.5 how to add module in a header

后端 未结 8 1522
不思量自难忘°
不思量自难忘° 2021-02-14 21:58

Please some one tell me how can I position modules like slider or banner in header or how can we define additional regions for the modules.

相关标签:
8条回答
  • 2021-02-14 22:59

    You can also use an extension that places 2 positions in header and footer. It create the same hooks, like column_left and content_top, etc.

    it works with VQmod for opencart 1.5x

    0 讨论(0)
  • 2021-02-14 23:01

    I read all of your answer. Forget all things. It's very easy to call any module into header section.

    Open your catalog/controller/common/header.php file

    $this->data['YOUR_MODULE_NAME'] = $this->getChild('module/YOUR_MODULE_NAME');

    Now Open .tpl file of header, which is located at catalog/view/theme/YOUR_THEME/template/common/header.tpl

    and echo your desire module whenever you want, like as: <?php echo $YOUR_MODULE_NAME;?>

    That's it. you are done.

    0 讨论(0)
提交回复
热议问题