diff --git a/Block/Success.php b/Block/Success.php index 8071d74..2399d44 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 0000000..182db85 --- /dev/null +++ b/CustomerData/ItemPool.php @@ -0,0 +1,25 @@ +getPriceInclTax(); + return $result; + } +} diff --git a/dev/testv2/.npmrc b/dev/testv2/.npmrc index 23715a6..459be16 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} diff --git a/dev/testv2/cypress/integration/web-extend.spec.js b/dev/testv2/cypress/integration/web-extend.spec.js index 71e4a70..f41a3aa 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 } ]); diff --git a/dev/testv2/package-lock.json b/dev/testv2/package-lock.json index ea1a394..10824b5 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": { diff --git a/etc/di.xml b/etc/di.xml index 19627dd..ef18cfc 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -58,6 +58,9 @@ + + +