We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec6bcde commit f07d938Copy full SHA for f07d938
src/app/code/community/Matomo/Analytics/Block/Script.php
@@ -2,14 +2,12 @@
2
declare(strict_types=1);
3
4
/**
5
- *
6
* Based on Piwik Extension for Magento created by Adrian Speyer
7
*
8
* @category Matomo
9
* @package Matomo_Analytics
10
* @copyright Copyright (c) 2018 Thiago Contardi.
11
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
12
13
*/
14
15
final class Matomo_Analytics_Block_Script extends Mage_Core_Block_Template
@@ -59,7 +57,7 @@ public function getOrdersTrackingCode(): string
59
57
}
60
58
61
if ($item->getQtyOrdered()) {
62
- $qty = number_format($item->getQtyOrdered(), 0, '.', '');
+ $qty = number_format((float)$item->getQtyOrdered(), 0, '.', '');
63
} else {
64
$qty = '0';
65
0 commit comments