-
-
Save jasonruyle/e392bb7b2579e481ddb29e129fbad12a to your computer and use it in GitHub Desktop.
Programmatically apply catalog price rules in Magento
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', '1'); | |
error_reporting(E_ALL); | |
// Bootstrap Magento | |
require '../magento/app/Mage.php'; | |
Mage::app('admin', 'store'); | |
try{ | |
$catalogPriceRule = Mage::getModel('catalogrule/rule'); | |
$catalogPriceRule->applyAll(); | |
} catch (Exception $e) { | |
die($e); | |
} | |
// GLHF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment