diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-05 08:04:43 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-07 03:25:59 +0300 |
commit | ac4d19763d4467fb848ebd84c6e3747e82edebab (patch) | |
tree | fbf762e6d221ef6e27b6028cdaced52bf387fdb5 /core/Tracker/GoalManager.php | |
parent | aaa2b72da730d2f86625273c036cdac0e3ffd113 (diff) |
refs #6435 replace possible comma with a dot. Not 100% sure if that works yet
Diffstat (limited to 'core/Tracker/GoalManager.php')
-rw-r--r-- | core/Tracker/GoalManager.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php index 9f989df935..f17b9a2b96 100644 --- a/core/Tracker/GoalManager.php +++ b/core/Tracker/GoalManager.php @@ -277,7 +277,10 @@ class GoalManager return $revenue; } - return round($revenue, self::REVENUE_PRECISION); + $revenue = round($revenue, self::REVENUE_PRECISION); + $revenue = Common::forceDotAsSeparatorForDecimalPoint($revenue); + + return $revenue; } /** @@ -633,7 +636,7 @@ class GoalManager 'idaction_category3' => (int)$item[self::INTERNAL_ITEM_CATEGORY3], 'idaction_category4' => (int)$item[self::INTERNAL_ITEM_CATEGORY4], 'idaction_category5' => (int)$item[self::INTERNAL_ITEM_CATEGORY5], - 'price' => $item[self::INTERNAL_ITEM_PRICE], + 'price' => Common::forceDotAsSeparatorForDecimalPoint($item[self::INTERNAL_ITEM_PRICE]), 'quantity' => $item[self::INTERNAL_ITEM_QUANTITY], 'deleted' => isset($item['deleted']) ? $item['deleted'] : 0, //deleted 'idorder' => isset($goal['idorder']) ? $goal['idorder'] : self::ITEM_IDORDER_ABANDONED_CART, //idorder = 0 in log_conversion_item for carts |