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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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