Get All Discount Coupons code and rules in magento

Magento, Programming
If you want to get all discount coupons codes of magento.Please use the folllowing code $sales_rules_collection = Mage::getModel(‘salesrule/rule’)->getCollection(); foreach($sales_rules_collection as $rule) { if($rule->getData(‘is_active’) ==1) { $rule->getData(‘name’); $rule->getData(‘code’); $rule->getData(‘simple_action’); $rule->getData(‘discount_amount’); }…
keyboard_arrow_up
Select your currency