cocothecat Posted May 28, 2012 Share Posted May 28, 2012 I have moved my RIGHT HOOK to my product.tpl file instead of footer to allow for a different design style however it does not display. Is there a reason why it would not? Or do I need to change another line of the code? I did not think moving it from the footer to product.tpl would make a difference... Link to comment Share on other sites More sharing options...
cocothecat Posted May 28, 2012 Author Share Posted May 28, 2012 if it helps this worked fine in 1.4.7 then an upgrade to 1.4.8 right hook fails to show if i move it from footer to product.tpl and category.tpl Link to comment Share on other sites More sharing options...
codegrunt Posted May 28, 2012 Share Posted May 28, 2012 For the hook to be displayed, the $HOOK_RIGHT_COLUMN Smarty variable needs to be set by Module::hookExec() *before* the template that references it is loaded up. I am not sure with 1.4.8 but previously this happened in FrontControllerCore::displayFooter() which is normally called *after* product.tpl will have been loaded. You can move most hook placeholders within a single template but moving them between templates would require larger changes (class overrides at the least). So if you want to move the entire right column hook somewhere else you are looking at adding a class override I expect. That is possible but should not normally be necessary. Instead of doing that, it makes more sense to just transplant the relevant events currently associated with the right column to whatever hook makes more sense for your case (i.e. one that gets set during the product template rendering process). Events associated with the various hooks can be moved around via the backoffice (I forget where but probably under modules). Cheers Link to comment Share on other sites More sharing options...
valentin.g Posted August 4, 2012 Share Posted August 4, 2012 check classes/frontcontroller.php displayheader() displayfooter() Link to comment Share on other sites More sharing options...
Recommended Posts