Jump to content

Hook newsletter block to topcolumn?


wzshop

Recommended Posts

HI!
You need to add this new hook in modules/blocknewsletter/blocknewsletter.php file

If You know exactly name of your desired hook You need to add it into

public function install()
    {
        if (!parent::install() || !$this->registerHook(array('header', 'footer', 'actionCustomerAccountAdd')))
            return false;

like this

public function install()
    {
        if (!parent::install() || !$this->registerHook(array('header', 'footer', 'yourdesiredhook', 'actionCustomerAccountAdd')))
            return false;

than find

public function hookFooter($params)
    {
        return $this->hookDisplayLeftColumn($params);
    }

and add below

public function hookYourDesiredHook($params)
    {
        return $this->hookDisplayLeftColumn($params);
    }

Now BlockNewsletter can be moved to new position (hook) You just added -> YourDesiredHook :)

Edited by PrestaShark (see edit history)
  • Like 1
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...