Skip to content

Instantly share code, notes, and snippets.

@Dh42
Created April 22, 2015 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dh42/16666461e80b79104e12 to your computer and use it in GitHub Desktop.
Save Dh42/16666461e80b79104e12 to your computer and use it in GitHub Desktop.
dh42 BO Header for Affiliates
public function hookDisplayBackOfficeHeader($params)
{
if( isset($this->context->controller->dh_support) )
return;
$this->context->controller->dh_support = 1;
if (version_compare(@_PS_VERSION_,'1.6','<'))
$this->context->controller->addJS($this->_path . '/js/dh42_15.js', 'all');
else
$this->context->controller->addJS($this->_path . '/js/dh42.js', 'all');
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment