Jump to content

[Solved]How do i move the newsletter block to the footer?


Recommended Posts

Well, it doesn't work for me these solutions.

Everything i try it goes into a blank page...

 

I have 1.5.4...

 

In my .php file I fave:

public function hookDisplayLeftColumn($params)

{

$this->_prepareHook($params);

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

}

 

public function hookFooter($params)

{

return $this->hookDisplayLeftColumn($params);

}

 

public function hookDisplayHeader($params)

{

$this->context->controller->addCSS($this->_path.'blocknewsletter.css', 'all');

}

 

}

 

Maybe I do something wrong.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

Well, it doesn't work for me these solutions.

Everything i try it goes into a blank page...

 

I have 1.5.4...

 

In my .php file I fave:

public function hookDisplayLeftColumn($params)

{

$this->_prepareHook($params);

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

}

 

public function hookFooter($params)

{

return $this->hookDisplayLeftColumn($params);

}

 

public function hookDisplayHeader($params)

{

$this->context->controller->addCSS($this->_path.'blocknewsletter.css', 'all');

}

 

}

 

Maybe I do something wrong.

 

It didn't work also for me and made one trick.. Just make the registration of the hook (not the install part) then inside put whatever has left column inside.. It worked for me ver. 1.5.2

 

Best regards,

Konstantinos

  • Like 1
Link to comment
Share on other sites

thanks for the information that your issue is solved, i just want to say, that most important things are:

  1. registerhook('footer') in installation function
  2. hookfooter($param) function

with this two elements, module will work there

 

regards

  • Like 1
Link to comment
Share on other sites

Finally there were some issues with that.. But my alternative worked (Cleared cache and everything and works properly). What I did is moving the module in the last position of the left column and then with css (positon: relative; top: xxx px; left: xxx px) moving it to the footer position where i want it.. Optional: css of footer (z-index: -1) in order to bring the footer back and module to show up.. Optional no 2.. Changing appearance of module in its css.. dimensions, color, icon blah blah..

 

You can check my e-shop to see the result!

Edited by Λόχος Ορεινών Καταδρομών (see edit history)
  • Like 1
Link to comment
Share on other sites

Finally there were some issues with that.. But my alternative worked (Cleared cache and everything and works properly). What I did is moving the module in the last position of the left column and then with css (positon: relative; top: xxx px; left: xxx px) moving it to the footer position where i want it.. Optional: css of footer (z-index: -1) in order to bring the footer back and module to show up.. Optional no 2.. Changing appearance of module in its css.. dimensions, color, icon blah blah..

 

You can check my e-shop to see the result!

 

hey

 

can you please share the url to your store? it is in your profile signature?

 

i know that this is offtopic, but read the forum rules: http://www.prestashop.com/forums/topic/50158-prestashopcom-forum%E2%80%99s-rules-suggestions-for-use/

 

"nickname avatars and signatures"

Link to comment
Share on other sites

×
×
  • Create New...