Jump to content

How to user override method in AdminOrdersController.php


Recommended Posts

Hai,

 

 

For a  module development,  i need to add some code into AdminOrdersController.php file. But i dont want to add the code into above core file. how can i add the code. Can i use override method for this? How can i use override method.

 

Just i want to add the following code in the function "public function initToolbar()"

 

 

$orderid = $_GET['id_order'];
if ($orderid!='')
$this->toolbar_btn['test'] = array(
'href' => '#',
'desc' => $this->l('Test Button')
);
Link to comment
Share on other sites

  • 3 months later...

Having read the post... Is there a way to add the table alteration into code - rather than just using something like phpMyAdmin to hand alter the table first in step 1? If you have code sample / link to another post or URL of some documentation covering this for module development - i'd really appreciate it.

Edited by webdeli (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...