How to filter the shipping method in one-page checkout in Magento?

Introduction You may want to filter the shipping method in one-page checkout for one of the following cases: Filter shipping method based on Customer Group Filter Shipping method based on Country, State, Zipcode, etc Filter Shipping method based on products etc. Unlike event: payment_method_is_active for payment method filtration, we don’t have similar event: shipping_method_is_active available …

Read more

Hide other shipping methods when FREE shipping is enabled

When free shipping method is enabled, it is shown along with other available shipping methods unlike free payment method ‘Zero Subtotal Checkout’.There is no harm in showing other payment methods along with the free shipping method. Nevertheless, some merchants want to hide the rest of the methods when it is enabled. There are many ways …

Read more

How to Find the size/rows of Magento Database & Tables?

Introduction Magento is a giant e-commerce application having more than 300 tables. It uses an EAV model concept and provides different complex features that make the database huge. Sometimes you may wonder what’s the database size of your Magento database or individual tables so that you can work on some optimization task or freeing some …

Read more

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