http://www.host1plus.com/tutorials/cms-tutorials/magento/magento-administration/how-to-automate-currency-rate-updates

By default Magento is not updating currency rates automatically. Therefore, to keep them updated we need to do this manually basically every day. In order to keep them updated automatically, we might need to set up automated script which will be doing this automatically at specified time stamps.



Start with editing Magento configuration file which is located at “app/code/core/Mage/Directory/etc/confix.xml”. Open it with any text editor and put the following lines.



<crontab>
<jobs>
<currency_rates_update>
<schedule>
<cron_expr>0 * * * *</cron_expr>
</schedule>
<run>
<model>directory/observer::scheduledUpdateCurrencyRates</model>
</run>
</currency_rates_update>
</jobs>
</crontab>






These lines will define to run scheduled task (cron job) every hour. We can adjust time stamp by editing line between “cron_expr”.



Next step is to set up our server to run Magento cron jobs. This can be done by adding the following line in the server cron job manager.



1
 | /usr/bin/wget -q 'http://www.domain.com/magento/cron.php'

By executing this line, Magento will be running it’s cron jobs as well. The last step is to set scheduled tasks settings in Magento admin backend. Simply navigate to “Admin > Configuration > System > Cron (Scheduled Tasks)” and set the following settings.




  • Generate Schedules Every 30

  • Schedule Ahead for 60

  • Missed if Not Run Within 120

  • History Cleanup Every 60

  • Success History Lifetime 180

  • Failure History Lifetime 600


Of course, we can adjust them according to our needs as well. That’s it about updating automatic currency rates automatically. By using this simple system we won’t need to worry about not updated currencies in our store.