prakashivan Posted July 18, 2014 Share Posted July 18, 2014 hello there, i want to insert some new code into home page file. how can i locate home page file in prestashop folder?. using PS 1.6.0.8 theme: default bootstrap http://localhost:8888/prestashop/ attached homepage pic thanks in advance for reply's Link to comment Share on other sites More sharing options...
rajlaskar Posted July 18, 2014 Share Posted July 18, 2014 hi please refer this http://doc.prestashop.com/display/PS15/Integrating+content+in+a+page+using+hooks Hooks are a way to attach your code to some specific PrestaShop events. Most of the time, they are used to insert content in a page. ..... where do you want to add code ? Link to comment Share on other sites More sharing options...
vekia Posted July 18, 2014 Share Posted July 18, 2014 hello you can use header.tpl file located in your theme directory /themes/default-bootstrap/header.tpl 2 Link to comment Share on other sites More sharing options...
prakashivan Posted July 18, 2014 Author Share Posted July 18, 2014 hi please refer this http://doc.prestashop.com/display/PS15/Integrating+content+in+a+page+using+hooks Hooks are a way to attach your code to some specific PrestaShop events. Most of the time, they are used to insert content in a page. ..... where do you want to add code ? hi actually i want to insert a code for fancybox in homepage... thank you for your reply Link to comment Share on other sites More sharing options...
rajlaskar Posted July 19, 2014 Share Posted July 19, 2014 Hi prakashivan, if it is just a link and some content use vekia's HTML box module http://www.prestashop.com/forums/topic/189375-module-html-box-pro-put-the-code-anywhere-you-want/ below code will show a fancybox link [though i have not tested that in vekia's HTML box module] But if added in themes>>yourTheme>>footer.tpl , will show the fancybox link [ i don't recommend this, instead use a module to display anything] ------------------- <a class="poplink" rel="cs2" href="ext/track_order.php">Track your order</a> <script type="text/javascript"> $('a.poplink').each(function(){ $(this).fancybox({ 'type' :'iframe', 'width' : '60%', 'autoScale': true, 'transitionIn': 'elastic', 'transitionOut' : 'fade', 'autoDimensions':'true' }); }); </script> --------------------- Link to comment Share on other sites More sharing options...
prakashivan Posted July 19, 2014 Author Share Posted July 19, 2014 Hi prakashivan, if it is just a link and some content use vekia's HTML box module http://www.prestashop.com/forums/topic/189375-module-html-box-pro-put-the-code-anywhere-you-want/ below code will show a fancybox link [though i have not tested that in vekia's HTML box module] But if added in themes>>yourTheme>>footer.tpl , will show the fancybox link [ i don't recommend this, instead use a module to display anything] ------------------- <a class="poplink" rel="cs2" href="ext/track_order.php">Track your order</a> <script type="text/javascript"> $('a.poplink').each(function(){ $(this).fancybox({ 'type' :'iframe', 'width' : '60%', 'autoScale': true, 'transitionIn': 'elastic', 'transitionOut' : 'fade', 'autoDimensions':'true' }); }); </script> --------------------- i have already installed htmlbox module. let me try ur code and let u know. btw do u know any paid module for displaying fancybox?? thanks Link to comment Share on other sites More sharing options...
rajlaskar Posted July 19, 2014 Share Posted July 19, 2014 btw do u know any paid module for displaying fancybox?? thanks let me know, what exactly do you want? I can write a module for you. thank you Link to comment Share on other sites More sharing options...
prakashivan Posted July 19, 2014 Author Share Posted July 19, 2014 let me know, what exactly do you want? I can write a module for you. thank you see this url http://www.bewakoof.com/, check their displaynav, i want a similar fancybox like that in my homepage, payment is not a prob..pm @[email protected] Link to comment Share on other sites More sharing options...
vekia Posted July 20, 2014 Share Posted July 20, 2014 so, simply add script that rajlaskar mentioned in header section then create link in displayNav with class="poplink", like i did here: make sure that module (htmlbox) is added to dispalyNav hook under modules > positions (search for displayNav modules list) Link to comment Share on other sites More sharing options...
Recommended Posts