MrBaseball34 Posted July 20, 2012 Share Posted July 20, 2012 I'd like to create a BO only module that is only available to users of a certain group. People that are not in that group would not see it at all. How would I put that limitation in the module? Link to comment Share on other sites More sharing options...
math_php Posted July 22, 2012 Share Posted July 22, 2012 Hi, Your question is how to display or not for employees, depending on their profile a content in the back office? By using $cookie = new Cookie('psAdmin'); $profile = $cookie->profile; You will have to create profiles. Good dev Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 23, 2012 Author Share Posted July 23, 2012 Actually, I know how to get whether they are admins or not, I just need to understand where to put the access limitation code in my module and be able to show them that it is available only for admins. I would like to modify the employee module to not allow anyone to access the employee records without being an admin, too. Link to comment Share on other sites More sharing options...
math_php Posted July 23, 2012 Share Posted July 23, 2012 Yeah but to avoid employees with 'worker' profile (for example) to have limited right, you can set the permission and forbid them to change employee permissions Link to comment Share on other sites More sharing options...
mheath5440 Posted July 31, 2012 Share Posted July 31, 2012 Hi, I am trying to write a BO module to export orders in a specific HTML format. The problem I am having is displaying HTML on the tab I have created. I can call the superclass displayForm() and that renders but when I try to show a simple div following, nothing shows...here is the code: <?php include_once( PS_ADMIN_DIR.'/../classes/AdminTab.php'); class AdminOrderExport extends AdminTab{ public function __construct(){ $this->table = 'order'; //$this->className = 'OrderExport'; parent::__construct(); } public function displayForm(){ parent::displayForm(); echo '<div>Test</div>'; } } It follows with other BO modules I have looked at so any advice would be appreciated. Thanks Link to comment Share on other sites More sharing options...
mheath5440 Posted July 31, 2012 Share Posted July 31, 2012 ok, got past that problem with calling display() now I cannot call the displayForm() in the super class... Link to comment Share on other sites More sharing options...
[email protected] Posted December 25, 2012 Share Posted December 25, 2012 Hello Guys Any help how to create simple bak -office module with auto add tab ('customer price') under main tab 'Customer'. i want to assign different price to different customer from directly using this module. no to individual product(default presta behaviour). 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