Jump to content

displayAdminProductsExtra no module shown


seb_c

Recommended Posts

Hi everyone,
I have a weird bug on one of my prestashop installation : no module appear in displayAdminProductsExtra hook.
It is 1.7.2.3
I made a copy of it as a development platform, I tried to upgrade it  but the bug is still here...
I have another installation which was use in almost the same way but it does not present the bug.


The module installation seems fine because I can see it in Design -> Positionspositions.png.9ef38e8394b58daad7f8462069a5ab9a.png

I started debugging but need help to know where to look.
I went up from the twig template and found the HookDispatcher class which does not return any listeners, but I don't know where the HookDispatcher is intanciated and the listener added.

So if anyone can guide me to understand this problem,
thank you :)

module.png

page_produits.png

Link to comment
Share on other sites

Finally I found LegacyHookSubscriber and the function getSubscribedEvents.

Turns out the hook name came back as "DisplayAdminProductsExtra" instead of "displayAdminProductsExtra".

I have no idea how I could have been changed, but just renaming in the table ps_hook fix my problem...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...