Пример #1
0
 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();
 }