Adding a Magento payment method for back-end sales

Sadly there aren’t that many payment methods that allow transactions from the backend of Magento.  This is because in most cases this would require you to know the payment data of your client. But some time you want to create orders in the backend for the customers who would order by phone, come to the store to pick up the order and pay in cash.

coding-module.jpg

Sadly there aren’t that many payment methods that allow transactions from the backend of Magento. This is because in most cases this would require you to know the payment data of your client. But some time you want to create orders in the backend for the customers who would order by phone, come to the store to pick up the order and pay in cash.

To achieve this you just need 2 lines of code: Copy the ‘/app/code/core/Mage/Payment/Model/Method/Purchaseorder.php’ to the local pool and added these two lines to the top of the class.

protected $_canUseInternal = true;
protected $_canUseCheckout = false;

 

About the author
Eduardo Silva was born in Buenos Aires, Argentina, and has being living in London for the past 15 years. With a background in psychology he is a IT developer and the co-founder of open-ecommerce.org, a digital content social enterprise. His passion is digital story-telling and has created short films and documentaries to help people promote there ideas.