Jump to content

How to make a right override (classes and tpl) ?


Recommended Posts

Hi all,

to add some columns to the orders view in the back office I've modified these two files:

\classes\order\Order.php  (class OrderCore extends ObjectModel)
\controllers\admin\AdminOrdersController.php (class AdminOrdersControllerCore extends AdminController)

 

Which is the right way to make a right override of these two classes without change the core files?

 

How can I retrieve the tpl associated to the controller \AdminOrdersController that shows the grid of orders in the back office?

 

Thak you very much

 

claudio

Link to comment
Share on other sites

Hi Claudio,
Yes, that's the right way to do it. As for the tpl, it should be in themes\default\template\helpers\list
The file is list_content.tpl. Just grab that and put it into themes\default\template\controllers\orders\helpers\list

The paths are relative to the admin folder

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