/** * Return method title for payment selection page * * @param Mage_Payment_Model_Method_Abstract $method */ public function getMethodTitle(Mage_Payment_Model_Method_Abstract $method) { $form = $this->getChild('payment.method.' . $method->getCode()); if ($form && $form->hasMethodTitle()) { return $form->getMethodTitle(); } return $method->getTitle(); }
/** * translate method title shown in payment selection * the methode code is the key, if no transaltion found * use the title setting * * @return string */ public function getTitle() { /** @var Wirecard_CheckoutPage_Helper_Data $helper */ $helper = Mage::helper('wirecard_checkoutseamless'); $translated = $helper->__($this->_paymentMethod); if ($translated == $this->_paymentMethod) { return parent::getTitle(); } return $translated; }
public function getTitle() { if (Mage::helper('buckaroo3extended')->getIsKlarnaEnabled()) { return parent::getTitle(); } if (!Mage::helper('buckaroo3extended')->isOneStepCheckout()) { return parent::getTitle(); } $block = Mage::app()->getLayout()->createBlock('buckaroo3extended/paymentMethods_ideal_checkout_form')->setMethod($this); $title = parent::getTitle() . ' ' . $block->getMethodLabelAfterHtml(false); return $title; }
/** * override parent method to get the user-configured title, not the one from config.xml * * @return string */ public function getTitle() { if ($this->getConfig() instanceof Payone_Core_Model_Config_Payment_Method_Interface) { return $this->getConfig()->getName(); } try { // order has higher priority than quote $order = $this->getInfoInstance()->getOrder(); if ($order instanceof Mage_Sales_Model_Order and $order->hasData()) { return $this->getConfigByOrder($order)->getName(); } /** @var $session Mage_Checkout_Model_Session */ $session = Mage::getSingleton('checkout/session'); $quote = $session->getQuote(); if (!$quote instanceof Mage_Sales_Model_Quote or !$quote->getId()) { $quote = $this->getInfoInstance()->getQuote(); } if ($quote instanceof Mage_Sales_Model_Quote and $quote->getId()) { return $this->getConfigForQuote($quote)->getName(); } } catch (Exception $e) { return parent::getTitle(); // if for some reason config was not found, use parent method } // call parent method if no config available return parent::getTitle(); }
/** * Override parent getTitle in order to translate the config.xml title (thank you magento) */ public function getTitle() { // If there was an error, inform the user if (is_string($this->_api->methods)) { return Mage::helper('core')->__($this->_api->methods); } // If this is a void field to be filled, fill it if ($this->isValidIndex()) { return Mage::helper('core')->__($this->_api->methods[$this->_index]['description']); } // Otherwise, translate the title from config.xml return Mage::helper('core')->__(parent::getTitle()); }
/** * Get payment title * * @return string */ public function getTitle() { return Mage::helper('sofort')->__(parent::getTitle()); }