Describe the bug
displayHeader usage in theme.yml causes a weird behavior : a new hook is created et launched before the header hook (the good one)
To Reproduce
Steps to reproduce the behavior:
displayHeader is an alias of header hook (ps_hook_alias). To follow 1.7 conventions this should be the other way around.
Additional information
PrestaShop version: 1.7.6.1
PHP version: 7.0
Hi @jf-viguier,
Is it the same issue reported in this ticket: https://github.com/PrestaShop/PrestaShop/issues/10405?
Thanks!
@khouloudbelguith no
@jf-viguier, I did not manage to reproduce the issue with PS1.7.6.2 using this theme
childtheme-example.zip

Thanks to check & feedback.
You can see the bug in your screenshot : the hook is displayHeader and should be just header
@jf-viguier, thanks for these clarifications.
I manage to reproduce the issue with PS1.7.6.2 & PS1.7.5.2.

I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!
In fact, the official hook name should be displayHeader and header the alias, but I don't know the impact to rename a hook.
This should fix #10405