Jump to content

Admin order page, custom field

Recommended Posts


So, now that PS is so more optimized code wise and overrides don't work anymore, please point me in the direction on how would one add a custom field with a button to an order admin page?

Let's say I wanted to add a new field under Documents tab on the page of the order. Or anywhere else.. And of course I want to save that data when the button is clicked.

Hooks? Yes! AdminOrdersController.php doesn't really have what one would need right? Or am I missing it?

PS version: latest at the time of this post.

Share this post

Link to post
Share on other sites


Use  the  hook  AdminOrder.

In the  php :

 public function hookAdminOrder($params)

     // you can do what you here, submit data etc


Here is  a module  that  uses  that  hook in the  Back end admin  order details :   Order  Survey. 

You can see its  screenshots.


Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More