This plugin integrates a new module within the Shopware backend that allows for a simple management of SQL queries and their manual or automated execution.
The plugin offers the following features:
Optional:
Clone this repository into a folder WbmQueryManager within the custom/plugins directory of the Shopware installation.
Install the plugin through the Plugin-Manager within the Shopware backend. Activate the plugin and when prompted allow for the clearing of the listed caches. Reload the backend to complete the installation.
composer require webmatch/wbm-query-manager
and install and activate plugin with Plugin Manager The module will be accessible in backend through a new menu point under the Settings menu tab.
The plugin comes with a few example queries which can be safely deleted.
The plugin offers a few basic configuration options:
To use the cron-job features of this plugin please first make sure the plugin Cron is installed in Plugin Manager and the Cron-Job Query Manager is activated in the cron job settings.
Shopware Cron-Jobs can be executed via request of the URL (e.g. http://your-shop.tld/backend/cron) or by console command php bin/console sw:cron:run (recommended)
Your server has to be setup accordingly to either request the cron URL or run the console command in regular intervals. This interval naturally also determines the minimum interval that Shopware cron-jobs can be executed at.
Fetched rows of SELECT statements executed through cron-jobs will be logged as CSV files in the directory var/logs of the Shopware installation. By specifying an email address in the plugin configuration logged files will also be transmitted by email.
MIT
This plugin is also commercially available through Shopware's community store. While the code itself is released under MIT license, the commercial distribution includes support through Webmatch GmbH and continous auto-updates. You may use this plugin without purchase but please be aware that you may receive notifications through Shopware about missing the according license. We have no influence on those notifications.