Prestashop 1.7.1 - Top banner which hook shall be used?

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:22:21

问题


Following this question I have created a new banner. Now I want to insert a hook, but I am wondering which hook shall be used to display it on top of every page (as a promotional banner).

Thanks


回答1:


Assuming you're using the classic theme, you can use the displayBanner hook. If you look at header.tpl you can find the following block:

{block name='header_banner'}
   <div class="header-banner">
     {hook h='displayBanner'}
   </div>
{/block}

which should be displayed on top of every page



来源:https://stackoverflow.com/questions/47289650/prestashop-1-7-1-top-banner-which-hook-shall-be-used

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!