first commit

This commit is contained in:
Konstantin
2026-05-30 09:27:58 +03:00
commit de0344d218
2371 changed files with 661486 additions and 0 deletions
@@ -0,0 +1,17 @@
<?php
class ModelExtensionTotalTax extends Model {
public function getTotal($total) {
foreach ($total['taxes'] as $key => $value) {
if ($value > 0) {
$total['totals'][] = array(
'code' => 'tax',
'title' => $this->tax->getRateName($key),
'value' => $value,
'sort_order' => $this->config->get('total_tax_sort_order')
);
$total['total'] += $value;
}
}
}
}