diff --git a/Block/Script.php b/Block/Script.php index 25b63c5..ece4129 100644 --- a/Block/Script.php +++ b/Block/Script.php @@ -132,7 +132,7 @@ public function _toHtml() 'name' => $product->getName(), 'price' => round($product->getPrice(), 2), 'tax' => round($product->getTaxAmount(), 2), - 'quantity' => round($product->getQtyOrdered()), + 'quantity' => round($product->getQtyOrdered(), 2), 'variant' => $variant, ])); } diff --git a/CHANGELOG.md b/CHANGELOG.md index c1589ee..2178422 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +### Salesfire v1.5.1 +Released on 2024-12-04 +Released notes: + +- Improves product quantity rounding to better handle made to measure products. + ### Salesfire v1.4.17 Released on 2024-10-03 Released notes: diff --git a/Helper/Data.php b/Helper/Data.php index 9fa26df..4ae7cd4 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -9,7 +9,7 @@ * * @category Salesfire * @package Salesfire_Salesfire - * @version 1.4.17 + * @version 1.5.1 */ class Data extends AbstractHelper { @@ -49,7 +49,7 @@ public function __construct( */ public function getVersion() { - return '1.4.17'; + return '1.5.1'; } /** diff --git a/Helper/Feed/Generator.php b/Helper/Feed/Generator.php index 2b80dfc..606ed8d 100644 --- a/Helper/Feed/Generator.php +++ b/Helper/Feed/Generator.php @@ -7,7 +7,7 @@ * * @category Salesfire * @package Salesfire_Salesfire - * @version 1.4.17 + * @version 1.5.1 */ class Generator { diff --git a/composer.json b/composer.json index 9b24a40..5604035 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "salesfire/magento2", "description": "Salesfire Magento2", "type": "magento2-module", - "version": "1.4.17", + "version": "1.5.1", "license": [ "OSL-3.0" ],