cancel
Showing results for 
Search instead for 
Did you mean: 

Make a Payment Method only visible in admin

SOLVED

Make a Payment Method only visible in admin

Hi, I'd like to make the Purchase Order payment method only visible in admin order creations and not in the front end checkout process. Could I please have some guidance as to what needs amending for me to be able to achieve this. Thanks Smiley Happy

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Make a Payment Method only visible in admin

Dear @Encaps,

If you want show Purchase Order payment method only backend, you just need to declare "protected $_canUseCheckout              = false;" in the file: app\code\core\Mage\Payment\Model\Method\Purchaseorder.php so Purchase Order cannot work on frontend. 
And vice versa you can declare "protected $_canUseInternal   = false;" in class Mage_Payment_Model_Method_Purchaseorder so that Purchase Order cannot work in backend.

 

Hope you success.

www.advancedcheckout.com - www.stableaddon.com
One Step checkout extension - Social Login extension - Gift Card extension

View solution in original post

11 REPLIES 11

Re: Make a Payment Method only visible in admin

Hello,

 

You try this guide: http://www.magebuzz.com/blog/magento-hide-payment-methods-frontend/

Problem solved? Click Accept as Solution!

Re: Make a Payment Method only visible in admin

Dear @Encaps,

If you want show Purchase Order payment method only backend, you just need to declare "protected $_canUseCheckout              = false;" in the file: app\code\core\Mage\Payment\Model\Method\Purchaseorder.php so Purchase Order cannot work on frontend. 
And vice versa you can declare "protected $_canUseInternal   = false;" in class Mage_Payment_Model_Method_Purchaseorder so that Purchase Order cannot work in backend.

 

Hope you success.

www.advancedcheckout.com - www.stableaddon.com
One Step checkout extension - Social Login extension - Gift Card extension

Re: Make a Payment Method only visible in admin

This very simple change worked perfectly. Thank you!

Re: Make a Payment Method only visible in admin

Very Simple and helpful trick. Thanks for sharing this.

Re: Make a Payment Method only visible in admin

Great fix, thanks.

Re: Make a Payment Method only visible in admin

Can you please explain how to achieve this in magento 2?

 

thank you

Re: Make a Payment Method only visible in admin

Thanks a lot. It is working perfectly for me.

Re: Make a Payment Method only visible in admin

Excelent solution!

Do you know how to do the same for Braintree?

Re: Make a Payment Method only visible in admin

We know this is a programming  related question but if someone is looking for a pre-built extension then below extension should help

 

https://redchamps.com/payment-methods-for-backend-magento2-extension.html

 

- It offers 9 payment methods which can be used for backend orders

- It allows you to add payment handling fees(flat/percentage) for these payment methods