Jump to content

[solved] paymentlogoblock in header


Recommended Posts

You can try to transplant the module to the top hook (Modules->positions->transplant), however, the module may not be designed to work on that hook, in which case you would need to modify it and add the ability to use the top hook.

Link to comment
Share on other sites

You can try to transplant the module to the top hook (Modules->positions->transplant), however, the module may not be designed to work on that hook, in which case you would need to modify it and add the ability to use the top hook.

 

How would i go with the modifying of the module. which file would i have to change, and what would i have to change?

Link to comment
Share on other sites

open blockpaymentlogo.php

 

add:

if (!$this->registerHook('top'))
  return false;

 

to the:

if (!parent::install())
  return false;
 if (!$this->registerHook('leftColumn'))
  return false;
 if (!$this->registerHook('top'))
  return false;
 if (!$this->registerHook('header'))
  return false;
 return true;

 

then create new function:

public function hookTop($params)
{
return $this->hookLeftColumn($params);
}

 

reinstall the module.

 

all other stuff is related to css / module position under the modules > position tab in BO.

Link to comment
Share on other sites

You should search the forum / google, there are instructions for modifying a module for a new hook.

 

The file you would need to edit is the same as the module name .php

 

I managed to create the hookTop in the blockpaymentlogo.php, but i won't show up in my front office.

I created the code in the bottom of off the php file:

 

public function hookTop($params)

{

return $this->hookLeftColumn($params);

}

 

 

I made sure to reset the module in the backoffice and hook it into the top hook. Can you tell me what i did wrong?

Link to comment
Share on other sites

open blockpaymentlogo.php

 

add:

if (!$this->registerHook('top'))
  return false;

 

to the:

if (!parent::install())
  return false;
 if (!$this->registerHook('leftColumn'))
  return false;
 if (!$this->registerHook('top'))
  return false;
 if (!$this->registerHook('header'))
  return false;
 return true;

 

then create new function:

public function hookTop($params)
{
return $this->hookLeftColumn($params);
}

 

reinstall the module.

 

all other stuff is related to css / module position under the modules > position tab in BO.

 

 

 

Still not working :-S

Link to comment
Share on other sites

×
×
  • Create New...