VaReTaS Posted October 10, 2010 Share Posted October 10, 2010 Hi,I'm trying for a couple of hours to figure this out and I'm not able to do it, so I need some help.I need to include a PHP file in a CMS Page, since this PHP file has a Ajax Script that I've the need to show to my visitors.Is it possible to do?!?I've already tried to edit the "ps_cms_lang" content in order to add a <?php include("modules/imc-calc.php"); ?> at the text but it doesn't shows up.Even more, I've already tested every include available, such as SSI. I've also tried a iFrame, (that partial worked) but I do not want to use this as long as it may cause some problems.Any suggestions on about how to solve this, using a PHP tag?!?Regards,VaReTaS Link to comment Share on other sites More sharing options...
softbeach Posted October 10, 2010 Share Posted October 10, 2010 Edit your CMS page and click on the html code link button on the tinymce text editor and paste your php file code there.I hope it will work for you. Link to comment Share on other sites More sharing options...
VaReTaS Posted October 10, 2010 Author Share Posted October 10, 2010 Hi,It won't work, because my script, has some code that should go in the <head> section and a form that goes on the <body>, that why I have it in a "external" php file.Maybe someone has a solution for this... I hope! Link to comment Share on other sites More sharing options...
topuser Posted October 10, 2010 Share Posted October 10, 2010 try to save the code in a separate php file.After that you should include it in a new php or html file Link to comment Share on other sites More sharing options...
noesac Posted October 10, 2010 Share Posted October 10, 2010 I spent ages trying to do this too. I finally found the solution the other night...very happy:)http://www.prestashop.com/forums/viewthread/49131/general_discussion/how_to_edit_the_html_source_of_a_cms_generated_page Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now