- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
One Step checkout extension - Social Login extension - Gift Card extension
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Make a Payment Method only visible in admin
Hello,
You try this guide: http://www.magebuzz.com/blog/magento-hide-payment-methods-frontend/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
One Step checkout extension - Social Login extension - Gift Card extension
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Make a Payment Method only visible in admin
This very simple change worked perfectly. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Make a Payment Method only visible in admin
Very Simple and helpful trick. Thanks for sharing this.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Make a Payment Method only visible in admin
Great fix, thanks.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Make a Payment Method only visible in admin
Can you please explain how to achieve this in magento 2?
thank you
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Make a Payment Method only visible in admin
Thanks a lot. It is working perfectly for me.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Make a Payment Method only visible in admin
Excelent solution!
Do you know how to do the same for Braintree?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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