opencart 1.5 how to add module in a header

后端 未结 8 1525
不思量自难忘°
不思量自难忘° 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-14 22:50

    You can learn from controller/common/column_right.php

    Check module position (line 50), you can adapt it to "header":

    $module['position'] == 'column_right'
    

    Set the output (line 69), you can adapt it to something like "header_mod" :

    $this->data['modules']
    

    You need to modificate module at admin to show additional module position.
    There is no "header" module position options at admin page.

提交回复
热议问题