prestashop_newuser Posted January 23, 2014 Share Posted January 23, 2014 Hi, I am doing a small module in Prestashop. I want to show the module output(template) both left,right,top hook. Means in homepage it will be in some column, in productpage it will be in anothr column. So can someone kindly tell me how to check the hook in pages and show them? Link to comment Share on other sites More sharing options...
vekia Posted January 23, 2014 Share Posted January 23, 2014 you can do it with if conditions in module template files. i don't know exactly what and where you wan to to displa but for example: if you want to display contents of .tpl file only on product page, you can use this: {if $page_name=="product"} Contents here {/if} Link to comment Share on other sites More sharing options...
prestashop_newuser Posted January 24, 2014 Author Share Posted January 24, 2014 (edited) you can do it with if conditions in module template files. i don't know exactly what and where you wan to to displa but for example: if you want to display contents of .tpl file only on product page, you can use this: {if $page_name=="product"} Contents here {/if} @Vekia..yes I know but I want to hook into different columns as per different page name. Means lets say I will show a block in left column in home page, in product page the block will be shown in right side, in category page the block will be shown in before the middle content section. Hope you will understand my requirement. So can you tell me how to do that? Edited January 24, 2014 by prestashop_newuser (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 24, 2014 Share Posted January 24, 2014 you can achieve it with if condition that i suggested to use. there is no other way. attach module to all hooks you want to use, then with IF conditions display contents on pages you want. Link to comment Share on other sites More sharing options...
Recommended Posts