Jump to content

how to create module?


Recommended Posts

Yo can go to validator.prestashop.com and generate a module folder to install and modify. But if you need add access to prestashop vars from a external script you need to do is 


<?php
 
define('_PS_ADMIN_DIR_', getcwd());
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
 
if (Context::getContext()->employee->isLoggedBack())
{
   /* Your code here, user is logged */
}
 
?>

and then you can use sessions by employees... There you can see examples

Link to comment
Share on other sites

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...