示例#1
0
文件: Totals.php 项目: pcuervo/gadfy
 public function getTotals()
 {
     if (is_null($this->_totals)) {
         return parent::getTotals();
     }
     return $this->_totals;
 }
示例#2
0
 /**
  * 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();
 }
示例#3
0
 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());
 }
示例#6
0
 /**
  * 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();
 }
示例#7
0
 public function _construct()
 {
     parent::_construct();
 }