Configure and run Magento cronjob
Step 1: Add the following to your plugin’s app/code/local/Vendorname/Modulename/etc/config.xml file <?xml version="1.0"?> <config> … … <crontab> <jobs> <hexacode_kleidoo> <schedule> <cron_expr>*/5 * * * *</cron_expr> </schedule> <run> <model>vendorname_modulename/observer::mymethod</model> </run> </hexacode_kleidoo> </jobs> </crontab> </config> Step 2: Create app/code/local/Vendorname/Modulename/Model/Observer.php file. We put it to Observer.php in this example but we could create a new class file for […]