i'm create Catalog Price Rules Programmatically it's work fine.
The issue is, I need to login with admin and click button "Apply Rules" other wise discount is not apply in magento store. So I need "Apply Rules" programmatically and I try bellow code but its not work.
try{
$catalogPriceRule = Mage::getModel('catalogrule/rule');
$catalogPriceRule->applyAll();
} catch (Exception $e) {
echo $e;
}
Any help or suggestion will be appreciated.