Jump to content

Displaying newsletter subscription module in maintenance page


devliquid

Recommended Posts

Hi there!

 

I'm trying to show the prestashop newsletter form in the maintenance page.

I modified the line

 

in blocksnewsletter.php

if (!parent::install() || !$this->registerHook(array('header', 'footer', 'actionCustomerAccountAdd')))

by adding 'maintenance' in the register hook call:

if (!parent::install() || !$this->registerHook(array('maintenance', 'header', 'footer', 'actionCustomerAccountAdd')))

But after clearing cache, the newsletter form is not geting displayed in the maintenance page.

 

How can I achieve this?

 

Thanks in advance.

Link to comment
Share on other sites

Hi..

 

Actually, there was already a function:

 

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

with the difference of the hook prefix. What is the diference in using the "hook" prefix?

 

I found that displayMaintenance, or hookdisplayMaintenance both works but only if you go to the admin panel > modules > positions > add hook (up right) and then search for the newsletter module and move it to the displayMaintenance hook in the drop down.

 

Is there a way to do this completley through code?, as this kind of actions in the admin pannel are not versionable, id like to do it in the code so I can use version control when building the site.

 

Thanks Nishith!

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