Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento2 quantity rounding #64

Merged
merged 3 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Block/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
michaelbarley marked this conversation as resolved.
Show resolved Hide resolved
'variant' => $variant,
]));
}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @category Salesfire
* @package Salesfire_Salesfire
* @version 1.4.17
* @version 1.5.1
*/
class Data extends AbstractHelper
{
Expand Down Expand Up @@ -49,7 +49,7 @@ public function __construct(
*/
public function getVersion()
{
return '1.4.17';
return '1.5.1';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Helper/Feed/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @category Salesfire
* @package Salesfire_Salesfire
* @version 1.4.17
* @version 1.5.1
*/
class Generator
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down