Create and test a custom cron job in Magento

During one of my latest Magento projects I had to create custom cron jobs, so I decided to write a small how to guide, that might help you do the same. First off you will need a new custom bundle. In app/etc/modules/New_Module.xml <?xml version=”1.0″?> <config> <modules> <New_Module> <active>true</active> <codePool>local</codePool> </New_Module> </modules> </config> In app/code/local/New/Module/etc <?xml version=”1.0″?> <config> <modules> <New_Module> <version>0.0.1</version> </New_Module> </modules> <global> <models> <new_module>         <class>New_Module_Model</class>     </new_module> </models> </global> <crontab> <jobs>         <new_module>             <schedule><cron_expr>*/1 * * * *</cron_expr></schedule>             <run><model>new_module/observer::test</model></run> …

Read moreCreate and test a custom cron job in Magento