Jump to content

creating a page


emmim44
 Share

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

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More