Jump to content

Issue With HOOK a New module under Order detail page once new order validate


ironwill

Recommended Posts

Hello,

 

I am developing a module for create the free order. From back office admin can add a free product from module configuration and it should show under order detail page of user account section after any validate order. 

 

public function actionValidateOrder($params){  

return Hook::exec('displayOrderDetail');

}

 

 

public function displayOrderDetail($params){ 

$this->context->smarty->assign(    

array(

'my_module_name' => Configuration::get('MYMODULE_NAME'),   

'my_module_link' => $this->context->link->getModuleLink('freeorder', 'display')      )  ); 

return $this->display(__FILE__, 'freeorder.tpl');

 

}

 

I have used two hook, one after validate order it should display a freeorder hook on displayorderdetail page. But unable to see any content on order detail page. Can you please suggest me, where i did something wrong.

 

Thanks !

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