fbas Posted January 17, 2012 Share Posted January 17, 2012 The override directory lets me override Classes and Controllers, but what about a class file in the admin dir? I want to override the AdminOrder in {admin}/tabs class with a tiny modification. I've put an override file in the /overrides/classes but not seeing any of my changes. I have caching off and force compile on. any ideas? Link to comment Share on other sites More sharing options...
bellini13 Posted January 17, 2012 Share Posted January 17, 2012 you cannot override admin tab classes in that way. the best way is to create a module, and place your custom AdminOrder file in the module folder. you then alter the entry for the AdminOrders in the ps_tab table, so that your module name is recorded This will force the backoffice to use your custom module version of AdminOrders, instead of the one located in the admin tab folder. Link to comment Share on other sites More sharing options...
fbas Posted January 24, 2012 Author Share Posted January 24, 2012 Thanks. This was very helpful and I've been able to copy and modify the AdminOrder.php to my custom version. Also found this link in another thread of this same topic: http://www.nethercottconstructions.com/en/content/55-overriding-back-office-tabs 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