Bleep Posted August 10, 2008 Share Posted August 10, 2008 Hi. I would like to add a page like F.A.Q's to the Information Box. What is the best way to do this? Thanks Link to comment Share on other sites More sharing options...
pcbob Posted August 10, 2008 Share Posted August 10, 2008 Hi Rory You will need to make a .tpl file and a .php file. An easy way is to modify/rename an existing one like conditions.Once sorted you can add the link in the blockinfos.tpl located in the modules directory.The .tpl file will reside in the themes/prestashop folder, the .php file will reside in the root.Hope it helpsBobP.S. I have added the 2 files needed for anyone to use - you only need to add to the faq.tpl file if you plan on doing an FAQ. Otherwise look for faq in the php file and edit. The files MUST be the same name.Add your new file anywhere in this block in blockinfos.tpl {l s='Applying A Jagua Tattoo' mod='blockinfos'} {l s='Delivery' mod='blockinfos'} {l s='Legal notice' mod='blockinfos'} {l s='Conditions' mod='blockinfos'} {l s='Jagua F.A.Q' mod='blockinfos'} {l s='About us' mod='blockinfos'} faq.zip Link to comment Share on other sites More sharing options...
Bleep Posted August 10, 2008 Author Share Posted August 10, 2008 Thanks for the fast response Bob! Will this page automatically appear on the sitemap, or do I have to add extra code for that somewhere? Thanks again Hi Rory You will need to make a .tpl file and a .php file. An easy way is to modify/rename an existing one like conditions.Once sorted you can add the link in the blockinfos.tpl located in the modules directory.The .tpl file will reside in the themes/prestashop folder, the .php file will reside in the root.Hope it helpsBobP.S. I have added the 2 files needed for anyone to use - you only need to add to the faq.tpl file if you plan on doing an FAQ. Otherwise look for faq in the php file and edit. The files MUST be the same name.Add your new file anywhere in this block in blockinfos.tpl {l s='Applying A Jagua Tattoo' mod='blockinfos'} {l s='Delivery' mod='blockinfos'} {l s='Legal notice' mod='blockinfos'} {l s='Conditions' mod='blockinfos'} {l s='Jagua F.A.Q' mod='blockinfos'} {l s='About us' mod='blockinfos'} Link to comment Share on other sites More sharing options...
Bleep Posted August 10, 2008 Author Share Posted August 10, 2008 I also forgot to add, did I read somewhere that there is a module coming soon that will allow us to quickly add extra pages, possibly with a WYSIWYG editor as well? Thank again Bob! Link to comment Share on other sites More sharing options...
pcbob Posted August 10, 2008 Share Posted August 10, 2008 Hi Rory.Sorry forgot about the sitemap. No , you will have to add it manually, very similar to adding in the blockinfos.tplfiles resides in themes/prestashop/sitemap.tpl. - add it into the information block.BobAny problems please PM me Link to comment Share on other sites More sharing options...
Bleep Posted August 10, 2008 Author Share Posted August 10, 2008 Thanks Bob. Link to comment Share on other sites More sharing options...
st4rl3t Posted August 16, 2008 Share Posted August 16, 2008 Hi, I have managed to add 3 new custom html pages into my shop. The thing is I have 2 language used in the shop, English and Indonesian. For adding contents in each page, If i edit the .tpl file, the translation won't work, right? But if i edit in en.php or id.php in the lang folder, there's a sentences with code like: $_LANG['about-us_b4f6535c9479945e898b17aebe78f7ba'] =How to generate those scripted text? If i want to add Indonesian translation in id.php and English translation in en.php Need help, thanks Link to comment Share on other sites More sharing options...
Recommended Posts