innocuous Posted October 13, 2012 Share Posted October 13, 2012 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 More sharing options...
kubaz Posted October 13, 2012 Share Posted October 13, 2012 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 More sharing options...
innocuous Posted October 13, 2012 Author Share Posted October 13, 2012 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 More sharing options...
kubaz Posted October 13, 2012 Share Posted October 13, 2012 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 More sharing options...
innocuous Posted October 13, 2012 Author Share Posted October 13, 2012 Featured products are displayed on home page. I want to add "Top sellers" and advertising blocks to the Homepage as well. Link to comment Share on other sites More sharing options...
kubaz Posted October 13, 2012 Share Posted October 13, 2012 then I think the only way is to do it as I described above Link to comment Share on other sites More sharing options...
innocuous Posted October 13, 2012 Author Share Posted October 13, 2012 OK. I will try it. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now