Make a Payment Method only visible in admin

3 views
Skip to first unread message

Sana Rajput

unread,
Jul 12, 2018, 6:36:50 AM7/12/18
to Magento Documentation Team
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

akshita...@gmail.com

unread,
Jul 13, 2018, 7:56:13 AM7/13/18
to Magento Documentation Team

Dear Sana,


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. If you still need help regarding Magento Development feel free to contact me.


Hope you success.

Reply all
Reply to author
Forward
0 new messages