Skip to content

iMateo/opencart-activity-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenCart Admin Panel User Activity Monitor

This module adding new section in Admin panel which could be used for monitoring, logging and ivestigation user's activity like Login, Logout, CRUD (Create, Update, Delete) Products, Categories, Atributes etc.

Getting Started

  • Upload all files from /upload to root folder of your store
  • Grant persmissions to Adminstrator group user to view/edit user/user_activity

Compatible

Module working now on OpenCart 2.3, futher version like OpenCart 3 is under construction. Psss... Contributors are welcome!

Module uses OpenCart Events System.

$this->model_extension_event->addEvent('user_activity', 'admin/model/setting/setting/editSetting/after', 'user/user_activity/addActivityEditSetting');

Installing

  • Upload all files from /upload to root folder of your store
  • Grant persmissions to Adminstrator group user to view/edit user/user_activity
  • Add a link in main menu to this module:
if ($this->user->hasPermission('access', 'user/user_activity')) {
				$user[] = array(
					'name'	   => 'Activity',
					'href'     => $this->url->link('user/user_activity', 'token=' . $this->session->data['token'], true),
					'children' => array()		
				);	
			}

And coding style tests

Your code standards should match the OpenCart coding standards. We use an automated code scanner to check for most basic mistakes - if the test fails your pull request will be rejected.

Incorrect

if ($my_example == 1)
{

class ModelExampleExample extends Model
{

public function addExample()
{

}
else
{

Correct

if ($my_example == 1) {

class ModelExampleExample extends Model {

public function addExample() {

} else {

Deployment

Currect version is early ALPHA, so please DO NOT use it on production right now. Looking for updates.

Built With

How to contribute

Fork the repository, edit and submit a pull request.

Please be very clear on your commit messages and pull request, empty pull request messages may be rejected without reason.

Your code standards should match the OpenCart coding standards. We use an automated code scanner to check for most basic mistakes - if the test fails your pull request will be rejected.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Ihor Chyshkala - Initial work - iMateo

Greatly looking for contributors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone who's code was used
  • Inspiration
  • etc

About

Extension allow to control activity of users inside admin panel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published