Magento – rules to fix catalog price rule price

Refer http://www.pacificwebtechnology.com/blog/magento-rules-to-fix-catalog-price-rule-issue/

 

1. Make pricerule.php in root folder

<?php
require_once 'app/Mage.php';
 // if your are not root folder then write the proper path like 
publichtml/magento/app/Mage.php
Mage::app('default');
$catalogRule = Mage::getModel('catalogrule/rule');
 $catalogRule->applyAll();
Mage::app()->removeCache('catalog_rules_dirty');
?>

 

2. Make cron job

0 0 * * * php /home/~/public_html/pricerule.php

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.