Is it possible to make a bank transfer payment method available only for manual order at the back-end?
1 Answer
You'll need to override the Mage_Payment_Model_Method_Banktransfer
model using a typical rewrite, and you'll want to set both _canUseCheckout
& _canUseMultishipping
properties to false
; ref. the properties in Mage_Payment_Model_Method_Abstract
(link):
/**
* Payment Method features
* @var bool
*/
protected $_isGateway = false;
protected $_canOrder = false;
protected $_canAuthorize = false;
protected $_canCapture = false;
protected $_canCapturePartial = false;
protected $_canRefund = false;
protected $_canRefundInvoicePartial = false;
protected $_canVoid = false;
protected $_canUseInternal = true;
protected $_canUseCheckout = true;
protected $_canUseForMultishipping = true;
protected $_isInitializeNeeded = false;
protected $_canFetchTransactionInfo = false;
protected $_canReviewPayment = false;
protected $_canCreateBillingAgreement = false;
protected $_canManageRecurringProfiles = true;
-
Thanks - looks good. his way I first enable it in backend, and then set these two variables to allow it to be seen in backend only. Is there a way to set these vaiables dynamicallu (during onestepcheckout? then I dont need to override the whole method)– snh_nlCommented Feb 14, 2013 at 11:23
-
-
@snh_nl you can do it by dynamically create store config and access it in banktransfer model Commented Aug 19, 2016 at 7:19