mr_david Posted January 25, 2021 Share Posted January 25, 2021 Greetings, I need to override controller AdminOrdersController from my custom module. I read that to do so. I had to create a new class in "modules/<name of the module>/override/controllers/admin/AdminOrdersController.php". I have it like this: class AdminOrdersController extends AdminOrdersControllerCore { public function __construct() { } ... } But it does not work. I've place the same file but in "override/controllers/admin/AdminOrdersController.php" and the class is override as intended. Can anyone help ? Link to comment Share on other sites More sharing options...
joseantgv Posted January 25, 2021 Share Posted January 25, 2021 Is the override copied when you install the module? Link to comment Share on other sites More sharing options...
mr_david Posted January 26, 2021 Author Share Posted January 26, 2021 That was it. I had to re-install the module again. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now