Magento Forum

   
Enable check/money order payment method on backend only? 
 
United Media Associates
Member
 
Avatar
Total Posts:  48
Joined:  2008-03-27
 

We need to accept check/money order payments when creating orders on the back end, but do not want this option available to customers on the front-end. What is the best way to accomplish this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
United Media Associates
Member
 
Avatar
Total Posts:  48
Joined:  2008-03-27
 

Does anyone know if the payment modules have a method of differentiating between front-end and back-end orders? If so, can someone point in the right direction of where to customize our payment method so that it appears on the back-end only?

 
Magento Community Magento Community
Magento Community
Magento Community
 
brianb421
Sr. Member
 
Total Posts:  196
Joined:  2009-04-23
 

i’d like to know this too. did you figure out a way to do this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
l2andp
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2010-09-03
 

We also desire this feature.

Does anyone know how to implement this functionality? Are there any known payment extensions that achieve this affect?

 
Magento Community Magento Community
Magento Community
Magento Community
 
brianb421
Sr. Member
 
Total Posts:  196
Joined:  2009-04-23
 

You all are in luck!

I found the solution here:

http://www.magentocommerce.com/boards/viewthread/79242/

Happy coding smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
l2andp
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2010-09-03
 

Thanks brianb421! That seems to have worked well. Thanks also to tzyganu for posting the code.

Compliments of tzyganu below is the fix.

Add these two lines of code to your \app\code\core\Mage\Payment\Model\Method\Checkmo.php file directly below “protected $_code = ‘checkmo’;”

protected $_canUseCheckout false;
protected 
$_canUseForMultishipping  false;

I’m using 1.4.0.1

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top