Extend Magento sales order grid using event observer

You can add new columns to the Sales Order grid easily by extending the block class: Mage_Adminhtml_Block_Sales_Order_Grid But this is not the preferred way due to conflict issues. Here I will show you how to extend order grid by using events(core_block_abstract_to_html_before & sales_order_grid_collection_load_before) only. For example purpose we will be adding Payment Method to sales …

Read moreExtend Magento sales order grid using event observer

How to filter payment method in onepage checkout

Introduction Q: How will you filter the payment method in onepage checkout based on some conditions? A: There are different ways to do so. Some of them are: #1 By overriding template: app/design/frontend/[interface]/[theme]/template/checkout/onepage/payment/methods.phtml #2 By overriding method: Mage_Checkout_Block_Onepage_Payment_Methods::_canUseMethod() #3 By overriding method: Mage_Payment_Model_Method_Abstract::isAvailable() #4 By overriding method: Mage_Checkout_Block_Onepage_Payment_Methods::getMethods() #5 By observing event: payment_method_is_active #6 etc. …

Read moreHow to filter payment method in onepage checkout