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
Solved! Go to Solution.
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.
Hello,
You try this guide: http://www.magebuzz.com/blog/magento-hide-payment-methods-frontend/
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.
This very simple change worked perfectly. Thank you!
Very Simple and helpful trick. Thanks for sharing this.
Great fix, thanks.
Can you please explain how to achieve this in magento 2?
thank you
Thanks a lot. It is working perfectly for me.
Excelent solution!
Do you know how to do the same for Braintree?
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