ilclaudio Posted September 3, 2016 Share Posted September 3, 2016 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 More sharing options...
NemoPS Posted September 5, 2016 Share Posted September 5, 2016 Hi Claudio,Yes, that's the right way to do it. As for the tpl, it should be in themes\default\template\helpers\listThe file is list_content.tpl. Just grab that and put it into themes\default\template\controllers\orders\helpers\listThe paths are relative to the admin folder Link to comment Share on other sites More sharing options...
ilclaudio Posted September 5, 2016 Author Share Posted September 5, 2016 But the new file \classes\order\Order.php must be moved in the override folder? cld Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2016 Share Posted September 5, 2016 file with code that you want to change must be in overrides folder you dont need to move whole file, just a part that you want to modify 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