opencart 1.5 how to add module in a header

后端 未结 8 1803
小鲜肉
小鲜肉 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 22:58

    This guide helped me:

    http://www.mywork.com.au/blog/create-new-module-layout-position-opencart-1-5/

    I was using 1.5.6.1 Opencart version.

    0 讨论(0)
  • 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.

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