Jump to content

Edit History

Mr Ola

Mr Ola

Hello. I hope you're well. 
I'm actually trying to override one module inside another. As on the official prestashop documentation, I did the test with the blockreassurance module, making of course an override of the AdminBlockListingController class. I followed exactly the same procedure as in the documentation, putting the file in the directory: /modules/mymodule/override/modules/blockreassurance/controllers/admin/AdminBlockListingController.php. 

But to my surprise, after installing my module, the copy is not made. I don't know why.  But when I override the module's main class (class blockreassurance extends Module), the copy goes through. 


I don't know why when it comes to controllers, front or back, it doesn't copy to the override folder.

here's the link to the docs: https://devdocs.prestashop-project.org/8/modules/concepts/overrides/


I don't really know what's going on. Please help me

Mr Ola

Mr Ola

Hello. I hope you're well. 
I'm actually trying to override one module inside another. As on the official prestashop documentation, I did the test with the blockreassurance module, making of course an override of the AdminBlockListingController class. I followed exactly the same procedure as in the documentation, putting the file in the directory: /modules/mymodule/override/modules/blockreassurance/controllers/admin/AdminBlockListingController.php. 

But to my great surprise, after installing my module, it didn't cope. I don't know why.  But when I override the module's main class (class blockreassurance extends Module), the copy goes through. 


I don't know why when it comes to controllers, front or back, it doesn't copy to the override folder.

here's the link to the docs: https://devdocs.prestashop-project.org/8/modules/concepts/overrides/


I don't really know what's going on. Please help me

×
×
  • Create New...