johnmcenroy Posted March 28, 2012 Share Posted March 28, 2012 Hello I have a website "Example.com" and want to use PHP Include (or SSI Include) to load page "Example2.com/index.html" on "Example.com". On my hosting i have enabled external connections. I know the function: <?php include("http://example2.com/index.html"); ?> But where i must put it and what settings must be enabled in Prestashop ? Please help with this problem. Thanks. Link to comment Share on other sites More sharing options...
Dh42 Posted March 29, 2012 Share Posted March 29, 2012 actually in the prestashop template the way to do it is {include file="$tpl_dir./errors.tpl"} 1 Link to comment Share on other sites More sharing options...
johnmcenroy Posted March 29, 2012 Author Share Posted March 29, 2012 actually in the prestashop template the way to do it is {include file="$tpl_dir./errors.tpl"} Thank you for reply But maybe i don't understand correctly , i need to embed my another website (domain2) on my domain1. Is this possible with templates ? Link to comment Share on other sites More sharing options...
johnmcenroy Posted March 30, 2012 Author Share Posted March 30, 2012 Please help with this problem Link to comment Share on other sites More sharing options...
johnmcenroy Posted April 1, 2012 Author Share Posted April 1, 2012 I have a cms page for example - http://example.com/test , and i want to use PHP Include on this page to include html page from another domain (or from the same) . How it can be possible ? Thanks Link to comment Share on other sites More sharing options...
johnmcenroy Posted April 1, 2012 Author Share Posted April 1, 2012 It seems that i am alone here Ok , i think i understood i make a php file for example TEST.PHP with content: <?php include("1.html"); ?> then i go to template folder and edit TPL for example HEADER.TPL and insert the following code: {include file="TEST.PHP"} Is it correct ? Link to comment Share on other sites More sharing options...
Recommended Posts