Skip to content

Commit 63cb404

Browse files
authored
Merge pull request #8 from stape-io/bug/purchase-item-price-including-tax
2 parents 7b0ea90 + 1647d7d commit 63cb404

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
v1.0.10
4+
- Fixed item price for purchase_stape event to include tax
5+
36
v1.0.9
47
- Fixed issue with cookie being re-generated on every page load.
58

ViewModel/Success.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private function prepareItems(\Magento\Sales\Model\Order $order)
9595
'item_id' => $item->getProductId(),
9696
'item_name' => $item->getName(),
9797
'item_category' => $category ? $category->getName() : null,
98-
'price' => $this->priceCurrency->round($item->getBasePrice()),
98+
'price' => $this->priceCurrency->round($item->getBasePriceInclTax()),
9999
'quantity' => (int) $item->getQtyOrdered(),
100100
'item_sku' => $item->getSku(),
101101
];

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": [
66
"GPL-3.0-only"
77
],
8-
"version": "1.0.9",
8+
"version": "1.0.10",
99
"require": {
1010
"php": ">=7.4.0"
1111
},

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22

33
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
4-
<module name="Stape_Gtm" schema_version="1.0.8" setup_version="1.0.9">
4+
<module name="Stape_Gtm" schema_version="1.0.8" setup_version="1.0.10">
55
<sequence>
66
<module name="Magento_Backend" />
77
<module name="Magento_Catalog" />

0 commit comments

Comments
 (0)