public function getTotals() { if (is_null($this->_totals)) { return parent::getTotals(); } return $this->_totals; }
/** * Check if we have display grand total in base currency * * @return bool */ public function needDisplayBaseGrandtotal() { // If we have a mapped currency code never display base grand total if (Mage::getSingleton('gene_braintree/wrapper_braintree')->hasMappedCurrencyCode()) { return false; } return parent::needDisplayBaseGrandtotal(); }
protected function _getTotalRenderer($code) { $result = null; try { $result = parent::_getTotalRenderer($code); } catch (Exception $e) { } if ($result) { return $result; } else { return new Mage_Core_Block_Template(); } }
public function _construct() { parent::_construct(); $this->setTemplate('recurring/order/totals.phtml'); }
protected function _construct() { parent::_construct(); $this->setQuote(Mage::helper('ebayenterprise_paypal')->getQuote()); }
/** * Hide totals block if there are no totals. * Otherwise it will output an empty block. * * @return string */ protected function _toHtml() { $html = ''; if (!$this->showBlock) { $html = $this->_getHideBlock(self::MODE_TOTALS_HIDE)->toHtml(); } return $html . parent::_toHtml(); }
public function _construct() { parent::_construct(); }