psychosonicsid Posted April 3, 2008 Share Posted April 3, 2008 Hi all, Tried to hook the currency module to the right column. Shows up in admin but doesn't show on the shop front. Tried various modules many appear to have problems? Anyone else suffering - or am I alone in my little world of Prestashop pain : ( Link to comment Share on other sites More sharing options...
wbclassics Posted April 3, 2008 Share Posted April 3, 2008 I don't think this is a bug, I think it is intentonal that the certain blocks are not transplantable into other page sections. If you look at the QuickSearch block for instance, it contains templates for both column display and header display. The Currencies block only has one template file, which most likely only pertains to the header section. If the PS team confirms this to be a bug so be it, but I think if you want to display certain elements like the currencies in either the left or right column, you'll have to modify the template files accordingly in order for it to work for you. Likewise, you can't put the Featured Products block anywhere else but the center content section of the main page. If you want to move it to a column, you'll have to do the customization yourself. Link to comment Share on other sites More sharing options...
psychosonicsid Posted April 4, 2008 Author Share Posted April 4, 2008 I had thought this might be the case - but if so why have it as a block at all? Or if a block isnt transplantable then this needs to be identified, or removed from the transplant list. Link to comment Share on other sites More sharing options...
DrÿSs' Posted April 4, 2008 Share Posted April 4, 2008 Hi, This is not a bug. If you transplate a module on a hook, you need to create PHP function in this module for the hook. I mean, in CurrencyBlock you have this function : function hookTop($params). If you transplant the CurrencyBlock on RightColumn, you need to create : function hookRightColumn($params). This way you can have different view of the block for different hook. Without function for the current hook, nothing will appear. Link to comment Share on other sites More sharing options...
Recommended Posts