/** * @override to further restrict availability of SafeInvoice by rules * * @param null|Mage_Sales_Model_Quote $quote * @return bool */ public function isAvailable($quote = null) { if (!empty($quote) && count($this->getAllConfigsByQuote($quote)) < 1) { return $this->dispatchPaymentMethodIsActive(false, $quote); } return parent::isAvailable($quote); }
public function isAvailable($quote = null) { $blParentReturn = parent::isAvailable($quote); if ($blParentReturn === true) { $blHasMatchingRatePayConfig = $this->_hasMatchingRatePayConfig(); return $blHasMatchingRatePayConfig; } return $blParentReturn; }