ACSD-65775: The base_row_total and row_total in the order details REST API response show the unit…
The base_row_total and row_total in the order details REST API response show the unit price instead of the total price when multiple quantities of the same item are ordered. Quality patch ACSD-65775 for magento/module-sales applies to Magento Open Source and Adobe Commerce 2.4.8 to 2.4.8-p2.
- Categories
- Order/Checkout, Web API
- Components
- magento/module-sales
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.66
Issue
The base_row_total and row_total in the order details REST API response show the unit price instead of the total price when multiple quantities of the same item are ordered.
Steps to reproduce
1. Create two simple products: simple1 priced at $10 and simple2 priced at $15. 1. Create a new customer account. 1. Add simple1 to the cart with quantity 2 and simple2 with quantity 3. 1. Place the order using the customer account. 1. Obtain an admin token by sending a POST request to /rest/V1/integration/admin/token with the following payload: { "username": "admin", "password": "password" } 1. Retrieve the order details using a GET request to /rest/default/V1/orders/1.
Adobe's page lists 2.4.8 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.9.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-65775. On Cloud, add ACSD-65775 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-65775/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.8 <2.4.8-p3
- Patch file
- patches/os/ACSD-65775_2.4.8.patch
- vendor/magento/module-sales/Block/Adminhtml/Items/Column/DefaultColumn.php
