Jump to content

override AdminOrdersControllerCore from custom module


Recommended Posts

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

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...