How to filter payment method in one-page checkout in Magento?

Introduction Q: How will you filter the payment method in one-page checkout based on some conditions? A: There are different ways to do so. Some of them are: By overriding template: app/design/frontend/[interface]/[theme]/template/checkout/onepage/payment/methods.phtml By overriding method: Mage_Checkout_Block_Onepage_Payment_Methods::_canUseMethod() By overriding method: Mage_Payment_Model_Method_Abstract::isAvailable() By overriding method: Mage_Checkout_Block_Onepage_Payment_Methods::getMethods() By observing event: payment_method_is_active and so on. Among the above methods …

Read more

Clear abandoned cart items during login in Magento

You may have noticed that old cart items (abandoned) get merged with the current one when the customer tries to log in. It’s good in terms of sales but sometimes your merchant simply may not want this feature. In this case, we can easily clear the abandoned cart items and stop being merged with the …

Read more

Usage of Magento event: core_block_abstract_to_html_after

Introduction There are lots of events in Magento which are dispatched by default. Among them ‘core_block_abstract_to_html_after’ is the one. Recently we have re-developed the Easy Template Path Hints extension using this event as the previous version of the extension has some confliction issues with other modules. In this article we will demonstrate the implementation of …

Read more

Adding new mass action to admin grid in Magento

Introduction You know Magento allows to have mass action on the selected grid listing items. The purpose of mass action is obvious that it allows having the mass/bulk operation on the selected rows at once. Some popular mass action is: Delete, Update Status, etc. This is often a requirement that you may need to add …

Read more