Вот код. Не работает.
$sum = $array['total_paid_tax_incl'] + $array['total_paid_real'];
$this->fields_list = array_merge($this->fields_list, array(
'total_products_wt' => array(
'title' => $this->l('Цена без услуг'),
'align' => 'text-right',
'type' => 'price',
'currency' => true,
'callback' => 'setOrderCurrency',
'badge_success' => true
),
'total_paid_real' => array(
'title' => $this->l('Предоплата'),
'type' => 'price',
'align' => 'text-right',
'currency' => true
),
'total_paid_tax_incl' => array(
'title' => $this->l('Total'),
'align' => 'text-right',
'type' => 'price',
'currency' => true,
'callback' => 'setOrderCurrency',
'badge_success' => true
),
$sum => array(
'title' => $this->l('Остаток к оплате'),
'align' => 'text-right',
'type' => 'price',
'currency' => true,
'callback' => 'setOrderCurrency',
'badge_success' => true
)
));