/** * EC PE won't be available if the EC is available * * @param Mage_Sales_Model_Quote $quote * @return bool */ public function isAvailable($quote = null) { if (!parent::isAvailable($quote)) { return false; } if (!$this->_ecInstance) { $this->_ecInstance = Mage::helper('payment')->getMethodInstance(Mage_Paypal_Model_Config::METHOD_WPP_EXPRESS); } if ($quote && $this->_ecInstance) { $this->_ecInstance->setStore($quote->getStoreId()); } return $this->_ecInstance ? !$this->_ecInstance->isAvailable() : false; }