Exemplo n.º 1
0
 /**
  * Prepare profile payments info
  */
 public function prepareFeesInfo()
 {
     $this->_shouldRenderInfo = true;
     $this->_addInfo(array('label' => $this->_profile->getFieldLabel('currency_code'), 'value' => $this->_profile->getCurrencyCode()));
     foreach (array('init_amount', 'trial_billing_amount', 'billing_amount', 'tax_amount', 'shipping_amount') as $key) {
         $value = $this->_profile->getData($key);
         if ($value) {
             $this->_addInfo(array('label' => $this->_profile->getFieldLabel($key), 'value' => Mage::helper('core')->formatCurrency($value, false), 'is_amount' => true));
         }
     }
 }