catalog/admin/includes/functions/general.php 1 location
|
@@ 1258-1262 (lines=5) @@
|
| 1255 |
|
//// |
| 1256 |
|
// Add tax to a products price |
| 1257 |
|
function tep_add_tax($price, $tax, $override = false) { |
| 1258 |
|
if ( ( (DISPLAY_PRICE_WITH_TAX == 'true') || ($override == true) ) && ($tax > 0) ) { |
| 1259 |
|
return $price + tep_calculate_tax($price, $tax); |
| 1260 |
|
} else { |
| 1261 |
|
return $price; |
| 1262 |
|
} |
| 1263 |
|
} |
| 1264 |
|
|
| 1265 |
|
// Calculates Tax rounding the result |
catalog/includes/functions/general.php 1 location
|
@@ 342-346 (lines=5) @@
|
| 339 |
|
//// |
| 340 |
|
// Add tax to a products price |
| 341 |
|
function tep_add_tax($price, $tax) { |
| 342 |
|
if ( (DISPLAY_PRICE_WITH_TAX == 'true') && ($tax > 0) ) { |
| 343 |
|
return $price + tep_calculate_tax($price, $tax); |
| 344 |
|
} else { |
| 345 |
|
return $price; |
| 346 |
|
} |
| 347 |
|
} |
| 348 |
|
|
| 349 |
|
// Calculates Tax rounding the result |