catalog/admin/includes/functions/general.php 1 location
|
@@ 1233-1237 (lines=5) @@
|
| 1230 |
|
//// |
| 1231 |
|
// Add tax to a products price |
| 1232 |
|
function tep_add_tax($price, $tax, $override = false) { |
| 1233 |
|
if ( ( (DISPLAY_PRICE_WITH_TAX == 'true') || ($override == true) ) && ($tax > 0) ) { |
| 1234 |
|
return $price + tep_calculate_tax($price, $tax); |
| 1235 |
|
} else { |
| 1236 |
|
return $price; |
| 1237 |
|
} |
| 1238 |
|
} |
| 1239 |
|
|
| 1240 |
|
// Calculates Tax rounding the result |
catalog/includes/functions/general.php 1 location
|
@@ 383-387 (lines=5) @@
|
| 380 |
|
//// |
| 381 |
|
// Add tax to a products price |
| 382 |
|
function tep_add_tax($price, $tax) { |
| 383 |
|
if ( (DISPLAY_PRICE_WITH_TAX == 'true') && ($tax > 0) ) { |
| 384 |
|
return $price + tep_calculate_tax($price, $tax); |
| 385 |
|
} else { |
| 386 |
|
return $price; |
| 387 |
|
} |
| 388 |
|
} |
| 389 |
|
|
| 390 |
|
// Calculates Tax rounding the result |