Enable/Disable Payment methods based on condition in Magento 1.9

There may be some condition where we need to Enable/disable any specific payment method based on condition.

For example a gift card product, virtual product or any other condition,

We are going to create a simple module say .

Create following files:




After that you need to flush cache.

You can download module:

How to show Coupon code on checkout page Magento 1.9.x

Many times we need to show coupon code form on checkout page in progress section.This can be achieved by Simple module. first we need to add form on checkout page in following file:


Above code will Show Coupon form but for Showing success/error message, We need a proper override of couponPostAction action of CartController. We are going to create a small module.

create: app/etc/modules/Pawan_Coupon.xml



Final result will be: