Skip to content

Commit 18758b6

Browse files
committed
remove duplicated currency_code
1 parent 77db44b commit 18758b6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/code/Magento/GoogleGtag/Block/Ga.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,12 @@ public function getOrdersTrackingData(): array
152152
'affiliation' => $this->_escaper->escapeHtml(
153153
$this->_storeManager->getStore()->getFrontendName()
154154
),
155-
'price' => number_format((float) $item->getPrice(), 2),
155+
'price' => round((float) $item->getPrice(), 2),
156156
'quantity' => (int)$item->getQtyOrdered()
157157
];
158158
}
159159
$result['orders'][] = [
160160
'transaction_id' => $order->getIncrementId(),
161-
'currency' => $order->getOrderCurrencyCode(),
162161
'value' => round((float) $order->getGrandTotal(), 2),
163162
'tax' => round((float) $order->getTaxAmount(), 2),
164163
'shipping' => round((float) $order->getShippingAmount(), 2),

app/code/Magento/GoogleGtag/Test/Unit/Block/GaTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ public function testOrderTrackingData()
171171
'orders' => [
172172
[
173173
'transaction_id' => 100,
174-
'currency' => 'USD',
175174
'value' => 10.00,
176175
'tax' => 2.00,
177176
'shipping' => 1.00,

0 commit comments

Comments
 (0)