File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
app/code/Magento/GoogleGtag Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -152,13 +152,12 @@ public function getOrdersTrackingData(): array
152
152
'affiliation ' => $ this ->_escaper ->escapeHtml (
153
153
$ this ->_storeManager ->getStore ()->getFrontendName ()
154
154
),
155
- 'price ' => number_format ((float ) $ item ->getPrice (), 2 ),
155
+ 'price ' => round ((float ) $ item ->getPrice (), 2 ),
156
156
'quantity ' => (int )$ item ->getQtyOrdered ()
157
157
];
158
158
}
159
159
$ result ['orders ' ][] = [
160
160
'transaction_id ' => $ order ->getIncrementId (),
161
- 'currency ' => $ order ->getOrderCurrencyCode (),
162
161
'value ' => round ((float ) $ order ->getGrandTotal (), 2 ),
163
162
'tax ' => round ((float ) $ order ->getTaxAmount (), 2 ),
164
163
'shipping ' => round ((float ) $ order ->getShippingAmount (), 2 ),
Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ public function testOrderTrackingData()
171
171
'orders ' => [
172
172
[
173
173
'transaction_id ' => 100 ,
174
- 'currency ' => 'USD ' ,
175
174
'value ' => 10.00 ,
176
175
'tax ' => 2.00 ,
177
176
'shipping ' => 1.00 ,
You can’t perform that action at this time.
0 commit comments