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:
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!
Leave a Reply

2 Responses to “Fix Cron.php So That Product Catalog Prices Stick!”
Comments
Trackbacks/Pingbacks
Mise en place du CRON de Magento sur un serveur privé - Frédéric Martinez on September 30th, 2009
[...] Via. Tags: cron, filtre prix, newsletter, rps, serveur privé [...]
Magento – catalog price rules not sticking | SEO WebMonkey on January 20th, 2010
[...] Magentoexpert has the solution which requires a couple of lines added to /cron.php: [...]