innocuous Posted October 13, 2012 Share Posted October 13, 2012 (edited) Hi, I have hidden the right and left columns on home page and resized to 976px. I want to add new products block below featured products on the home page. I am trying to transplant the module as below: Module: New products block Hook into: "homepage content" known as displayhome Exceptions: blank However i am getting the error " This module cannot be transplanted to this hook." Why is this and what can I do to solve? Using default theme prestashop 1.5.1 Thanks Edited October 13, 2012 by innocuous (see edit history) Link to comment Share on other sites More sharing options...
AKJV Posted October 13, 2012 Share Posted October 13, 2012 Most modules are limited in terms of where they can be hooked into. For the "New products block" this is limited to the right or left columns. This is determined in their php files. Just check /modules/blocknewproducts/blocknewproducts.php and compare this to /modules/homefeatured/homefeatured.php. You'll see "public function hookRightColumn($params)" and "public function hookLeftColumn($params)" at the end in blocknewproducts.php that allows hooking in those columns. While there's "public function hookDisplayHome($params)" at the end of homefeatured.php for hooking in the homepage content position. It might work when you just replace 'public function hookRightColumn($params)" with public function hookDisplayHome($params)" in blocknewproducts.php but I haven't checked this. If this works, you'll still have to modify this module's tpl and css files so that it looks ok on the homepage. Link to comment Share on other sites More sharing options...
innocuous Posted October 15, 2012 Author Share Posted October 15, 2012 Thanks. I'll try this. My homepage has only centre column. I want to display best sellers, new products and some advertisement blocks to prep up the page. With just featured items, it looks too limited! Link to comment Share on other sites More sharing options...
cool and charming Posted March 6, 2013 Share Posted March 6, 2013 (edited) hi i have created the hook as you said and gave the modules to it but these were not displaying in my front view hook.i am unable to see the modules in my backoffice but in front office it is not visible what to do now...?i have seen in firebug the div what ever i created can be visible but not the hooks.iam not geeting the modules in front office...?any help would be appreciated.I have cleared the cache and force compiled but the same prblm with it..?can any one help me.? Edited March 6, 2013 by cool and charming (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 6, 2013 Share Posted March 6, 2013 you should: 1) clear browser cache 2) try to turn force compilation on 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