joenmass Posted November 24, 2011 Share Posted November 24, 2011 How can I add content to either the left or right columns. I have a small PHP calendar script that I would like to add below the "Categories" box but I am having extremely large difficulty finding the correct location where I can add my code. Can anyone help me? Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted November 24, 2011 Share Posted November 24, 2011 It's not so easy just to add a PHP script as a block in PrestaShop. The best way is to develop a module, that "wraps" that calendar and position it as any other block module. Link to comment Share on other sites More sharing options...
joenmass Posted November 24, 2011 Author Share Posted November 24, 2011 Wow, thats way beyond my capabilities. I figured since Prestashop is php based that it wouldn't be such an issue. Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted November 24, 2011 Share Posted November 24, 2011 Having a module is probably the best way but it is possible to hard code it into your theme. This isn't really recommended because of updates and such. If you wish to hard code your php script in just go to either your header.tpl or footer.tpl and insert your code just under where the left/right column hooks. This will place your calendar at the bottom of the left or right column. If you want it at the top just move your code above the hook. Hope that works! Marty Shue Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted November 24, 2011 Share Posted November 24, 2011 Note, that the Smarty {php} tag is disabled by default (for security reasons), so you must enable it first. Link to comment Share on other sites More sharing options...
jhnstcks Posted November 24, 2011 Share Posted November 24, 2011 Try the addstuff Module from Ecartservices http://www.ecartservice.net/free-prestashop-modules/addstuff-for-prestashop/ Link to comment Share on other sites More sharing options...
norseman Posted December 8, 2011 Share Posted December 8, 2011 Try the addstuff Module from Ecartservices http://www.ecartserv...for-prestashop/ +1 ,just used it to add FB connection into prestashop... no need for modules, paid OR free. Will be supporting that development with some $$. Link to comment Share on other sites More sharing options...
Recommended Posts