Example #1
0
 /**
  * @return $this
  */
 public function initTotals()
 {
     $parent = $this->getParentBlock();
     $this->_order = $parent->getOrder();
     $this->_source = $parent->getSource();
     // $store = $this->getStore();
     $fee = new \Magento\Framework\DataObject(['code' => 'fee', 'strong' => false, 'value' => $this->_source->getFee(), 'label' => $this->_dataHelper->getFeeLabel()]);
     $parent->addTotal($fee, 'fee');
     return $this;
 }