emmim44 Posted May 18, 2010 Share Posted May 18, 2010 I need to create a php page within presta shop... How would i do that and where will i place the file? Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted June 16, 2010 Share Posted June 16, 2010 If you put your PHP file of your custom page in root directory :Write this inside your PHP file (ex. custom-page.php) : <?php include(dirname(__FILE__).'/config/config.inc.php'); if(intval(Configuration::get('PS_REWRITING_SETTINGS')) === 1) $rewrited_url = __PS_BASE_URI__; include(dirname(__FILE__).'/header.php'); $smarty->display(_PS_THEME_DIR_.'YOUR_CUSTOM_PAGE.tpl'); include(dirname(__FILE__).'/footer.php'); ?> Then, create your TPL file to display whatever you want with HTML, PHP, or javascript language, and put in your active themes directoryFinally you can access your custom page with this URLhttp://YOUR_DOMAIN/custom-page.php Link to comment Share on other sites More sharing options...
poplol Posted November 3, 2010 Share Posted November 3, 2010 And then how can you set the page meta , title and keywords ? 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