You have no items in your shopping cart.
Free Gift Extension FAQ: Troubleshooting Rules & Errors
Q: The "Apply Rules" button does not work. After loading, the server returns a 500 error.
A: Please try to apply the Catalog Price Rules using the command-line PHP script provided below. Place this script in your store's shell/ directory, and execute it via the terminal with php apply_rules.php.
<?php require_once '../Mage.php'; ini_set('display_errors', 1); #Varien_Profiler::enable();
Mage::setIsDeveloperMode(true); umask(0); Mage::app('default');
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
try { Mage::getModel('catalogrule/rule')->applyAll(); Mage::app()->removeCache('catalog_rules_dirty');
echo Mage::helper('catalogrule')->__('The rules have been applied successfully.') . "\n";
} catch (Exception $e) {
echo Mage::helper('catalogrule')->__('Unable to apply rules.') . "\n"; print_r($e);
}
Mage::setIsDeveloperMode(true); umask(0); Mage::app('default');
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
try { Mage::getModel('catalogrule/rule')->applyAll(); Mage::app()->removeCache('catalog_rules_dirty');
echo Mage::helper('catalogrule')->__('The rules have been applied successfully.') . "\n";
} catch (Exception $e) {
echo Mage::helper('catalogrule')->__('Unable to apply rules.') . "\n"; print_r($e);
}