Ekdant-Online-Store/extension/opencart/catalog/model/total/total.php
2024-08-06 18:06:00 +05:45

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')
];
}
}