Jump to content

How to show the Newsletter block inside the Footer Various Links block?


Recommended Posts

Hello there Prestashop engineers,

I have been trying dozens of things to do this, but all in vain.

I have modified the "Footer links block v0.1" (in the modules/blockvariouslinks/ folder)

I made a table there and I wish that in one of the cell the Newsletter block will show.

I created a new hook called footernewsletter in the hook database. Then, I have inserted

               {$HOOK_FOOTERNEWSLETTER}

in the blockvariouslinks.tpl file.

I tried to make it show there, changed and added lines in the blockvariouslinks.php. Nothing worked for me. I am new to this and read few posts here about how to create new hooks and all. But I can't make it show where I want to.

Please, can some one explain me what I need to do as in modifying the code?

Please Help.

Link to comment
Share on other sites

  • 6 months later...

The blocknewsletter Module by default is not intended to be positioned in the footer. That's why you'll have to make some alternations in the module itself.

Inside blocknewsletter/blocknewsletter.php you'll find the following lines of code

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



replace them with the following:

        function hookRightColumn($params)
       {
               return $this->hookLeftColumn($params);
       }        function hookFooter($params)
       {
               return $this->hookLeftColumn($params);
       }



done.

Link to comment
Share on other sites

  • 6 months later...
  • 4 months later...
  • 3 weeks later...
  • 4 weeks later...
  • 7 months later...

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