Closed
Description
Preconditions (*)
- Magento 2.3.3
Steps to reproduce (*)
- In the Magento 2 admin go to Reports -> Products -> Ordered
- Select a date range where you know you have sold products spanning across multiple orders
- Select 'Show By' Month
- Hit Refresh
Expected result (*)
The list of products grouped by SKU instead of product_id. So we can have information about number of products ordered for each product variation (ie: color).
Actual result (*)
Currently the report is grouping configurable porducts by product_id. Displaying the total of all of the variations (child products) into one product. The report, then, is not providing the total of each product variation like the example bellow:
Propposed Fix
I fixed this in my local enviroment by replacing the GROUP BY clause from GROUP BY order_items.product_id
to GROUP BY order_items.sku
. on app/code/Magento/Reports/Model/ResourceModel/Product/Sold/Collection.php
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentIndicates that Pull Request has been created to fix issueThe issue has been reproduced on latest 2.3 release