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

Translation for J2t Reward Points csv file for Magento.

Translation for J2t Reward Points csv file for Magento.   J2T Reward Points + Referral program VA is an excellent extension for Magento that overcomes the limitation of Magento on this matter. The plugin works like a charm, on 1.7.0 till 1.8.1.0 and I have been using it on countless project. It is not a free extension but 47$ are well worth this application. I have created a translation file for Italian locale, and I will add more as I will progress with it. To install simply upload the file in the related folder, eg. : app/locale/it_It/rewardpoints.csv for the italian one. it_IT …

Read moreTranslation for J2t Reward Points csv file for Magento.

Magento shipping method country codes

Table rates for Magento shipping method country codes I often found my self to fill in table rates for Magento shipping method, and got errors as I inserted the wrong codes. Here an useful table containing all the codes. I would suggest to download the CSV file from Magento to make sure you have the right format. Enjoy. Country 2 Digit Code 3 Digit Code  Afghanistan AF  AFG  Albania AL  ALB  Algeria DZ  DZA  American Samoa AS  ASM  Andorra AD  AND  Angola AO  AGO  Anguilla AI  AIA  Antarctica AQ  ATA  Antigua and Barbuda AG  ATG  Argentina AR  ARG  Armenia AM …

Read moreMagento shipping method country codes