opencart 1.5 how to add module in a header

后端 未结 8 1804
小鲜肉
小鲜肉 2021-02-14 22:28

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 23:00

    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.

提交回复
热议问题