Type
magento2-module
A Magento 2 module that allows an administrator to create reports in the admin panel. This is modeled after the Clean Reports module for Magento 1.
magento2-module
OSL-3.0, AFL-3.0
None
None
None
None
None
None
This module was inspired by the Magento 1 extension for custom reports (https://github.com/kalenjordan/custom-reports). Thank you to Kalen Jordan and all who contributed to that project.
Easily create reports with custom SQL queries and display them using the Magento admin grid.
This module has the potential to make irreversible changes to your database if set up incorrectly. Use at your own risk.
From the admin panel > Reports > Custom Reports > Custom Reports interface, reports can be created with arbitrary queries.
From the admin panel > Reports > Custom Reports > Automated Exports interface, jobs can be created to export one or more custom reports. Currently, two types of exports are supported: 1. Local file drops, in which a file is created on the server in which the Magento cron runs from in a configurable location, with var/export being the suggested location. 2. Remote file drops, in which a file is created the same as a local file drop and then uploaded to an SFTP server with the provided credentials.
If both types are selected, the system will run the query and generate the local file only once. This is useful for especially heavy queries.
A cron job will be created with the name "automated_export_
crontab/default/jobs/automated_export_1/schedule/cron_expr = 0 0 0 0 0 crontab/default/jobs/automated_export_1/run/model = DEG\CustomReports\Model\AutomatedExport\Cron::execute crontab/default/jobs/automated_export_1/name = automated_export_1
The popular third-party Magento tool, n98-magerun, can be used to run the automated exports manually from the command line using the above name, e.g. 'n98-magerun sys:cron:run automated_export_1'.