Jump to content

override class in admin directory


fbas

Recommended Posts

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

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

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