Skip to content

Commit 7c6e9bc

Browse files
committed
cast GrandTotal value to float.
1 parent 55b63dc commit 7c6e9bc

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/GoogleGtag/Block

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function getOrdersTrackingData(): array
187187
$resultOrder = [
188188
'transaction_id' => $order->getIncrementId(),
189189
'currency' => $order->getOrderCurrencyCode(),
190-
'value' => round($order->getGrandTotal(), 2),
190+
'value' => round((float) $order->getGrandTotal(), 2),
191191
'tax' => round((float) $order->getTaxAmount(), 2),
192192
'shipping' => round((float) $order->getShippingAmount(), 2),
193193
];

0 commit comments

Comments
 (0)