| 1: | <?php
|
| 2: | namespace Opencart\Catalog\Model\Extension\Opencart\Total;
|
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: |
|
| 8: | class Total extends \Opencart\System\Engine\Model {
|
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | |
| 16: | |
| 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: | |