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

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.

Guest
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