Jump to content

Add html in assign tpl


RegsDev

Recommended Posts

  • 1 year later...

I hope you found a way to solve your problem. If someone is facing this isssue, try this :

In hook :

public function hookDisplayOrderDetail($params){
	$smarty = Context::getContext()->smarty;
	$smarty->assign(array("html" =>'<a href="">test<a/>'));
}

In tpl file :

{$html nofilter}

 

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...