Jump to content

Unable to "Transplant Module" to Homepage (displayhome)


Recommended Posts

Hi,

Prestashop 1.5.1

Default theme

 

I am unable to transplant ANY module to homepage displayhome

 

Eg. Modules: CrossSelling, Block advertising etc

Hook into: Homepage Content known as display home.

 

I keep getting "This module cannot be transplanted to this hook."

 

Please help!

Link to comment
Share on other sites

Hi innocuous,

 

I will explain using croselling module. You need to make sure that inside modules/crossselling/crossselling.php you have the appropriate hook function placed. In this case the function will be called hookDisplayHome. You can then copy the code that goes inside that function from another hook like hookProductFooter, but I think that crossselling has to be related with another product that's why by default it's only assigned to shopping cart and product footer hooks.

Link to comment
Share on other sites

Ok. But can't this be done using theme directory only OR Backoffice featuers?

 

I don't want to mod modules folder as it might break when upgrading PS in future!

 

I am not even able to add "new products module" to homepage. That should not be a problem!

Link to comment
Share on other sites

I think that's the only way to transplant a module to a hook that's not included by default in that module. You can add products to the homepage using Homepage featured products. Just assign them to Home category in backoffice.

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