1

Is it possible to make a bank transfer payment method available only for manual order at the back-end?

1
  • Is it recommend to edit core files, how did you achieved in a safe way? @snh_nl
    – zus
    Commented Sep 29, 2020 at 11:13

1 Answer 1

4

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;
3
  • 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_nl
    Commented Feb 14, 2013 at 11:23
  • These could only be set via Reflection.
    – benmarks
    Commented Feb 14, 2013 at 16:45
  • @snh_nl you can do it by dynamically create store config and access it in banktransfer model Commented Aug 19, 2016 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.