shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

tax.php (429B)


      1 <?php
      2 class ModelExtensionTotalTax extends Model {
      3 	public function getTotal($total) {
      4 		foreach ($total['taxes'] as $key => $value) {
      5 			if ($value > 0) {
      6 				$total['totals'][] = array(
      7 					'code'       => 'tax',
      8 					'title'      => $this->tax->getRateName($key),
      9 					'value'      => $value,
     10 					'sort_order' => $this->config->get('total_tax_sort_order')
     11 				);
     12 
     13 				$total['total'] += $value;
     14 			}
     15 		}
     16 	}
     17 }