From dab9ab560230843561e244d94ed3bb83a216040e Mon Sep 17 00:00:00 2001 From: Sanyi Date: Thu, 22 May 2025 14:39:26 +0200 Subject: [PATCH 1/4] EMA-162 - Web behavior commands cart and purchase price handling --- Block/Success.php | 2 +- CustomerData/ItemPool.php | 25 +++++++++++++++++++++++++ etc/di.xml | 3 +++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 CustomerData/ItemPool.php diff --git a/Block/Success.php b/Block/Success.php index 8071d74a..2399d442 100644 --- a/Block/Success.php +++ b/Block/Success.php @@ -105,7 +105,7 @@ private function getLineItems(): array if ($this->notBundleProduct($item) && $this->notConfigurableChild($item)) { $qty = (int) $item->getQtyOrdered(); $sku = $item->getSku(); - $price = $item->getBaseRowTotal() - $item->getBaseDiscountAmount(); + $price = $item->getBaseRowTotalInclTax() - $item->getBaseDiscountAmount(); $items[] = [ 'item' => $sku, diff --git a/CustomerData/ItemPool.php b/CustomerData/ItemPool.php new file mode 100644 index 00000000..182db850 --- /dev/null +++ b/CustomerData/ItemPool.php @@ -0,0 +1,25 @@ +getPriceInclTax(); + return $result; + } +} diff --git a/etc/di.xml b/etc/di.xml index 19627dde..ef18cfc4 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -58,6 +58,9 @@ + + + From e286dfccfc9d80135443b980f745e17e2a2cea92 Mon Sep 17 00:00:00 2001 From: itegration-it <39052088+itegration-it@users.noreply.github.com> Date: Wed, 15 Oct 2025 11:32:33 +0200 Subject: [PATCH 2/4] Update .npmrc --- dev/testv2/.npmrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/testv2/.npmrc b/dev/testv2/.npmrc index 23715a6a..459be162 100644 --- a/dev/testv2/.npmrc +++ b/dev/testv2/.npmrc @@ -1,3 +1,3 @@ always-auth=true -@itg-commerce:registry=https://gitlab.itg.cloud/api/v4/projects/295/packages/npm/ -//gitlab.itg.cloud/api/v4/projects/295/packages/npm/:_authToken=${NPM_TOKEN} +@itg-commerce:registry=https://gitlab.itg.cloud/api/v4/projects/227/packages/npm/ +//gitlab.itg.cloud/api/v4/projects/227/packages/npm/:_authToken=${NPM_TOKEN} From f8c95ed7f781e8de31c588c6da24c03f04bae3e0 Mon Sep 17 00:00:00 2001 From: itegration-it <39052088+itegration-it@users.noreply.github.com> Date: Wed, 15 Oct 2025 11:33:01 +0200 Subject: [PATCH 3/4] Update package-lock.json --- dev/testv2/package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/testv2/package-lock.json b/dev/testv2/package-lock.json index ea1a3949..10824b50 100644 --- a/dev/testv2/package-lock.json +++ b/dev/testv2/package-lock.json @@ -369,7 +369,7 @@ }, "node_modules/@itg-commerce/magento2-api": { "version": "4.7.0", - "resolved": "https://gitlab.itg.cloud/api/v4/projects/295/packages/npm/@itg-commerce/magento2-api/-/@itg-commerce/magento2-api-4.7.0.tgz", + "resolved": "https://gitlab.itg.cloud/api/v4/projects/227/packages/npm/@itg-commerce/magento2-api/-/@itg-commerce/magento2-api-4.7.0.tgz", "integrity": "sha1-xJ6ScsSjwgQy2Iql7Gt57gD61MY=" }, "node_modules/@nodelib/fs.scandir": { From 2542528d490258356f7241781f0fbbd58c7b2821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deli-Szab=C3=B3=20S=C3=A1ndor?= Date: Thu, 16 Oct 2025 13:19:33 +0200 Subject: [PATCH 4/4] EMA-162 - web behavior commands cart and purchase price handling --- dev/testv2/cypress/integration/web-extend.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/testv2/cypress/integration/web-extend.spec.js b/dev/testv2/cypress/integration/web-extend.spec.js index 71e4a70c..f41a3aaf 100644 --- a/dev/testv2/cypress/integration/web-extend.spec.js +++ b/dev/testv2/cypress/integration/web-extend.spec.js @@ -147,7 +147,7 @@ describe('Web extend scripts', function () { expect(orderData.items).to.be.eql([ { item: '24-MB02', - price: 118, + price: 127.74, quantity: 2 } ]);