Prestashop: displayBanner hook is missing

Created on 11 Feb 2020  路  10Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
displayBanner hook is missing in database and in hook.xml

Additional information
PrestaShop version: 1.7.*
PHP version: 7.2

1.7.5.2 1.7.6.3 Bug CO Fixed Minor PR available Positions

Most helpful comment

Ohh I understand (Sorry, little bit tired :sweat_smile: )
My bad, at least I learnt something new today !
I validate your pull request :)

All 10 comments

Hi @jf-viguier,

Thanks for your report.
I have the same issue with PS1.7.6.3 & PS1.7.5.2
image
With PS1.6.1.24, it is not missing
image

I鈥檒l add this to the debug roadmap.

Thanks!

Thanks @khouloudbelguith can you paste here the hook part in hooks.xml of PS1.6.1.24 ?

The hook is not there, I guess it's a module that have created the hook in database with registerHook

As I said in your pull reuqest, the hook should be created by the module and not the Core :thinking:

@jf-viguier, it is the Banner block module.
image

@PierreRambaud said, if we install a module that create the displayBanner hook, it will be displayed.

Thanks!

@PierreRambaud I don't understand, the hook is launched in header.tpl in the core classic theme. We have modules that uses that hook : it has to be in the database and hooks.xml.

As I said in your pull reuqest, the hook should be created by the module and not the Core 馃

@PierreRambaud I disagree. The hook is launched in the core, it's in the doc and should be created by the core.
We don't use prestashop banner modules, we use our own banner module with is a modern widget module that don't have hardcoded hooks but can be hooked to any hook in positions bo menu.
This hook has to be in the database & hooks.xml, otherwise it will not be in the list of this bo page.

By the way, there is no other hook on top of the header block.

Ohh I understand (Sorry, little bit tired :sweat_smile: )
My bad, at least I learnt something new today !
I validate your pull request :)

Thanks @PierreRambaud take care of you.

Was this page helpful?
0 / 5 - 0 ratings