Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
catalog
/
model
/
extension
/
total
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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; } } } }