catalog/includes/modules/header_tags/ht_product_opengraph.php 1 location
|
@@ 140-152 (lines=13) @@
|
137 |
|
return array('MODULE_HEADER_TAGS_PRODUCT_OPENGRAPH_STATUS', 'MODULE_HEADER_TAGS_PRODUCT_OPENGRAPH_SORT_ORDER'); |
138 |
|
} |
139 |
|
|
140 |
|
function format_raw($number, $currency_code = '', $currency_value = '') { |
141 |
|
global $currencies; |
142 |
|
|
143 |
|
if (empty($currency_code) || !$currencies->is_set($currency_code)) { |
144 |
|
$currency_code = $_SESSION['currency']; |
145 |
|
} |
146 |
|
|
147 |
|
if (empty($currency_value) || !is_numeric($currency_value)) { |
148 |
|
$currency_value = $currencies->currencies[$currency_code]['value']; |
149 |
|
} |
150 |
|
|
151 |
|
return number_format(tep_round($number * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', ''); |
152 |
|
} |
153 |
|
} |
154 |
|
|
155 |
|
|
catalog/includes/modules/payment/sage_pay_direct.php 1 location
|
@@ 913-925 (lines=13) @@
|
910 |
|
} |
911 |
|
|
912 |
|
// format prices without currency formatting |
913 |
|
function format_raw($number, $currency_code = '', $currency_value = '') { |
914 |
|
global $currencies; |
915 |
|
|
916 |
|
if (empty($currency_code) || !$currencies->is_set($currency_code)) { |
917 |
|
$currency_code = $_SESSION['currency']; |
918 |
|
} |
919 |
|
|
920 |
|
if (empty($currency_value) || !is_numeric($currency_value)) { |
921 |
|
$currency_value = $currencies->currencies[$currency_code]['value']; |
922 |
|
} |
923 |
|
|
924 |
|
return number_format(tep_round($number * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', ''); |
925 |
|
} |
926 |
|
|
927 |
|
function getCardTypes() { |
928 |
|
$this->_cards = array(); |
catalog/includes/modules/payment/sage_pay_form.php 1 location
|
@@ 480-492 (lines=13) @@
|
477 |
|
} |
478 |
|
|
479 |
|
// format prices without currency formatting |
480 |
|
function format_raw($number, $currency_code = '', $currency_value = '') { |
481 |
|
global $currencies; |
482 |
|
|
483 |
|
if (empty($currency_code) || !$currencies->is_set($currency_code)) { |
484 |
|
$currency_code = $_SESSION['currency']; |
485 |
|
} |
486 |
|
|
487 |
|
if (empty($currency_value) || !is_numeric($currency_value)) { |
488 |
|
$currency_value = $currencies->currencies[$currency_code]['value']; |
489 |
|
} |
490 |
|
|
491 |
|
return number_format(tep_round($number * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', ''); |
492 |
|
} |
493 |
|
|
494 |
|
function getOrderTotalsSummary() { |
495 |
|
global $order_total_modules; |
catalog/includes/modules/payment/sage_pay_server.php 1 location
|
@@ 524-536 (lines=13) @@
|
521 |
|
} |
522 |
|
|
523 |
|
// format prices without currency formatting |
524 |
|
function format_raw($number, $currency_code = '', $currency_value = '') { |
525 |
|
global $currencies; |
526 |
|
|
527 |
|
if (empty($currency_code) || !$currencies->is_set($currency_code)) { |
528 |
|
$currency_code = $_SESSION['currency']; |
529 |
|
} |
530 |
|
|
531 |
|
if (empty($currency_value) || !is_numeric($currency_value)) { |
532 |
|
$currency_value = $currencies->currencies[$currency_code]['value']; |
533 |
|
} |
534 |
|
|
535 |
|
return number_format(tep_round($number * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', ''); |
536 |
|
} |
537 |
|
|
538 |
|
function loadErrorMessages() { |
539 |
|
$errors = array(); |
catalog/includes/modules/header_tags/ht_google_adwords_conversion.php 1 location
|
@@ 81-93 (lines=13) @@
|
78 |
|
} |
79 |
|
} |
80 |
|
|
81 |
|
function format_raw($number, $currency_code = '', $currency_value = '') { |
82 |
|
global $currencies; |
83 |
|
|
84 |
|
if (empty($currency_code) || !$currencies->is_set($currency_code)) { |
85 |
|
$currency_code = $_SESSION['currency']; |
86 |
|
} |
87 |
|
|
88 |
|
if (empty($currency_value) || !is_numeric($currency_value)) { |
89 |
|
$currency_value = $currencies->currencies[$currency_code]['value']; |
90 |
|
} |
91 |
|
|
92 |
|
return number_format(tep_round($number * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', ''); |
93 |
|
} |
94 |
|
|
95 |
|
function isEnabled() { |
96 |
|
return $this->enabled; |
catalog/includes/modules/header_tags/ht_google_analytics.php 1 location
|
@@ 105-117 (lines=13) @@
|
102 |
|
} |
103 |
|
} |
104 |
|
|
105 |
|
function format_raw($number, $currency_code = '', $currency_value = '') { |
106 |
|
global $currencies; |
107 |
|
|
108 |
|
if (empty($currency_code) || !$currencies->is_set($currency_code)) { |
109 |
|
$currency_code = $_SESSION['currency']; |
110 |
|
} |
111 |
|
|
112 |
|
if (empty($currency_value) || !is_numeric($currency_value)) { |
113 |
|
$currency_value = $currencies->currencies[$currency_code]['value']; |
114 |
|
} |
115 |
|
|
116 |
|
return number_format(tep_round($number * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', ''); |
117 |
|
} |
118 |
|
|
119 |
|
function isEnabled() { |
120 |
|
return $this->enabled; |