Jump to content

creating a page


emmim44

Recommended Posts

  • 4 weeks later...

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 directory

Finally you can access your custom page with this URL
http://YOUR_DOMAIN/custom-page.php

Link to comment
Share on other sites

  • 4 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...