From 7ad15272c88bb8c7776829e37e5aa23c87b8fea3 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 21 Jun 2023 11:45:02 +0200 Subject: [PATCH] Update app/code/core/Mage/GoogleAnalytics/Block/Ga.php Co-authored-by: Mohamed ELIDRISSI <67818913+elidrissidev@users.noreply.github.com> --- app/code/core/Mage/GoogleAnalytics/Block/Ga.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/GoogleAnalytics/Block/Ga.php b/app/code/core/Mage/GoogleAnalytics/Block/Ga.php index 997cb7569c4..da8270dcea5 100644 --- a/app/code/core/Mage/GoogleAnalytics/Block/Ga.php +++ b/app/code/core/Mage/GoogleAnalytics/Block/Ga.php @@ -397,7 +397,7 @@ protected function _getOrdersTrackingCodeAnalytics4() 'item_id' => $_product->getSku(), 'item_name' => $_product->getName(), 'price' => number_format($_product->getFinalPrice(), 2), - 'quantity' => intval($productInCart->getQty()), + 'quantity' => (int) $productInCart->getQty(), ]; if ($_product->getAttributeText('manufacturer')) { $_item['item_brand'] = $_product->getAttributeText('manufacturer');