Magento Logs – Developers First Love

If you want to debug any module and functionality you want to find the log.Every developers love the logs. While working with magento extension development or customization you need to…

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’); }…