Fix Cron.php So That Product Catalog Prices Stick!

Even after setting up a cron job (Magento Wiki Article: Setting up a Cron Job) to keep special catalog prices up-to-date, many users (including myself) are still finding that prices do not ’stick’. To solve this issue, edit Cron.php (in the root installation directory) so that the lower half is as follows:

?Download Cron.php
1
2
3
4
5
6
try {
Mage::getConfig()->init()->loadEventObservers(’crontab’);
Mage::app()->addEventArea(’crontab’);
Mage::dispatchEvent(default);
$ob = Mage::getModel(’catalogrule/observer’);
$ob->dailyCatalogUpdate("0 1 * * *");

And you should be sorted!