i'm create one Catalog Price Rules Programmatically it's work fine.
so myThe issue is, iI need to do login with admin and need click button of "Apply Rules" other wise discount is not apply in magento store, so i. So I need "Apply Rules" programmatically and iI try thisbellow 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.