27 lines
634 B
PHP
27 lines
634 B
PHP
<?php
|
|
namespace Opencart\Catalog\Model\Extension\Opencart\Total;
|
|
/**
|
|
* Class Total
|
|
*
|
|
* @package
|
|
*/
|
|
class Total extends \Opencart\System\Engine\Model {
|
|
/**
|
|
* @param array $totals
|
|
* @param array $taxes
|
|
* @param float $total
|
|
*
|
|
* @return void
|
|
*/
|
|
public function getTotal(array &$totals, array &$taxes, float &$total): void {
|
|
$this->load->language('extension/opencart/total/total');
|
|
|
|
$totals[] = [
|
|
'extension' => 'opencart',
|
|
'code' => 'total',
|
|
'title' => $this->language->get('text_total'),
|
|
'value' => $total,
|
|
'sort_order' => (int)$this->config->get('total_total_sort_order')
|
|
];
|
|
}
|
|
} |