| @@ 534-546 (lines=13) @@ | ||
| 531 | } |
|
| 532 | } |
|
| 533 | ||
| 534 | function formatCurrencyRaw($total, $currency_code = null, $currency_value = null) { |
|
| 535 | global $currencies, $currency; |
|
| 536 | ||
| 537 | if ( !isset($currency_code) ) { |
|
| 538 | $currency_code = tep_session_is_registered('currency') ? $currency : DEFAULT_CURRENCY; |
|
| 539 | } |
|
| 540 | ||
| 541 | if ( !isset($currency_value) || !is_numeric($currency_value) ) { |
|
| 542 | $currency_value = $currencies->currencies[$currency_code]['value']; |
|
| 543 | } |
|
| 544 | ||
| 545 | return number_format(tep_round($total * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', ''); |
|
| 546 | } |
|
| 547 | ||
| 548 | function getCode() { |
|
| 549 | return $this->_code; |
|
| @@ 588-600 (lines=13) @@ | ||
| 585 | tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = '" . tep_db_input($key) . "'"); |
|
| 586 | } |
|
| 587 | ||
| 588 | function formatCurrencyRaw($total, $currency_code = null, $currency_value = null) { |
|
| 589 | global $currencies, $currency; |
|
| 590 | ||
| 591 | if ( !isset($currency_code) ) { |
|
| 592 | $currency_code = tep_session_is_registered('currency') ? $currency : DEFAULT_CURRENCY; |
|
| 593 | } |
|
| 594 | ||
| 595 | if ( !isset($currency_value) || !is_numeric($currency_value) ) { |
|
| 596 | $currency_value = $currencies->currencies[$currency_code]['value']; |
|
| 597 | } |
|
| 598 | ||
| 599 | return number_format(tep_round($total * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', ''); |
|
| 600 | } |
|
| 601 | ||
| 602 | function getCode() { |
|
| 603 | return $this->_code; |
|