1: | <?php
2: | namespace Opencart\Catalog\Model\Extension\Opencart\Total;
3: | /**
4: | * Class Total
5: | *
6: | * @package Opencart\Catalog\Model\Extension\Opencart\Total
7: | */
8: | class Total extends \Opencart\System\Engine\Model {
9: | /**
10: | * Get Total
11: | *
12: | * @param array<int, array<string, mixed>> $totals
13: | * @param array<int, float> $taxes
14: | * @param float $total
15: | *
16: | * @return void
17: | */
18: | public function getTotal(array &$totals, array &$taxes, float &$total): void {
19: | $this->load->language('extension/opencart/total/total');
20: |
21: | $totals[] = [
22: | 'extension' => 'opencart',
23: | 'code' => 'total',
24: | 'title' => $this->language->get('text_total'),
25: | 'value' => $total,
26: | 'sort_order' => (int)$this->config->get('total_total_sort_order')
27: | ];
28: | }
29: | }
30: |

OpenCart API API documentation generated by ApiGen dev-master