Jump to content

Image Slider for Home Page by Prestashop Disappears.


Recommended Posts

The "Image slider for Home page" by Prestashop disappears overnight.

No updates, clearing cash or any other changes have been made.

The Slider status in back office shows  "Enabled".

The Hook is attached to "displayTopColumn"

Oddly enough, it is displayed correctly in the same Home page (index page) for the registered customers.

This happens once in a while unexpectedly.

Clearing cash restores the appearance of the slider, though.

But this is quite annoying.

 

The PS version is 1.6.1.5

 

Any ideas why this is happening?

 

Thank you.

Edited by akps1234 (see edit history)
Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
  • 2 weeks later...

Maybe i found the problem. If you use ovic template or other, which allows you to move modules to diferrent hooks, like in ovic template builder. You maybe moved module to hook, which is not registered in the module (homeslider) install method. I moved my Homeslider to hook 'DISPLAYHOMETOPCOLUMN' , but its not registered in homeslider module, and it starts to disappear randomly. So register it in homeslider install method (/modules/homeslider/homeslider.php line:67) (i didnt find a way, how to add it via admin, if anyone knows, please correct me) 

/* Adds Module */
		if (parent::install() &&
			$this->registerHook('displayHeader') &&
			$this->registerHook('displayTopColumn') &&
			$this->registerHook('actionShopDataDuplication') &&
                        $this->registerHook('displayHomeTopColumn') // custom
		)

and reinstall the module homeslider (Image slider for your homepage).

I hope it will help you.

Edited by daveyrow (see edit history)
Link to comment
Share on other sites

  • 3 months later...

I had same issue and finally solved it. 

 

Slider disappear because of that module not hooked correctly. ( like daveyrow said). 

If anyone experience same issue that daveyrow solution is correct but not enough. You need to find below code 

public function hookdisplayTop($params)
	{
		return $this->hookdisplayTopColumn($params);
	}

and need to add same for your new module position ( add below code)

  public function hookactionShopDataDuplication($params)
    {
        return $this->hookdisplayTopColumn($params);
    }

after change navigate to admin -> ovic theme config -> layout builder -> Configure ( your current layout)

 

from this page you can easily override your module hook position with new one (Hover over module and select override hook)

 

* Maybe the last step is unnecessary but i couldn't test it. 

Edited by originmad (see edit history)
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...