Jump to content
anilkumar36521

How to override Hook::exec('displayOrderDetail', array('order' => $order))

Recommended Posts

Hi All,

 

In OrderDetailController.php we have  Hook::exec('displayOrderDetail', array('order' => $order)

 

I want to edit this one where can I find this controller or class to edit displayOrderDetail

 

 

Thanks

Share this post


Link to post
Share on other sites

this is a hook defined for modules to add some additional information on order details page.

I do not see any default installed module that uses this hook.

 

if you want to use this hook, you have to register this hook in your module and then prepare public function hookDisplayOrderDetail() to be called.

 

 

registerHook('displayOrderDetail');

 

 

 

public function hookDisplayOrderDetail($params)

{

....

}

Share this post


Link to post
Share on other sites

this is a hook defined for modules to add some additional information on order details page.

I do not see any default installed module that uses this hook.

 

if you want to use this hook, you have to register this hook in your module and then prepare public function hookDisplayOrderDetail() to be called.

 

 

registerHook('displayOrderDetail');

 

 

 

public function hookDisplayOrderDetail($params)

{

....

}

Thanks for your reply.

 

I ordered one product from my shop here I am getting order details  3 times  once check this below link

 

print_r(Hook::exec('displayOrderDetail', array('order' => $order)));

 

http://prnt.sc/egyc8g (I ordered only one product but I am getting 3 times) where can I manage this.In E-mail also getting same problem

Edited by anilkumar36521 (see edit history)

Share this post


Link to post
Share on other sites

Thanks for your reply.

 

I ordered one product from my shop here I am getting order details  3 times  once check this below link

 

print_r(Hook::exec('displayOrderDetail', array('order' => $order)));

 

http://prnt.sc/egyc8g (I ordered only one product but I am getting 3 times) where can I manage this.In E-mail also getting same problem

It is my mistake.Problem is solved

Share this post


Link to post
Share on other sites

glad you figured out and resolved the problem. please mark the topic as RESOLVED by adding same word to the subject

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

×

Important Information

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