Magento:"产品订购"报告 - 如何展示可配置产品的儿童产品?

Seb*_*biF 3 product configurable magento

当我在Magento中创建"产品订购"报告时,可配置产品显示为单个产品,其中总结了所有子产品的销售额.

如何修改此行为,以便 - 另外 - 显示子产品及其销售数量?

使用的版本是Magento 1.6.2.

Seb*_*biF 7

来自#magento-de的millejano帮助我,并允许我发布这个答案:

为本地创建重写或将/app/code/core/Mage/Reports/Model/Resource/Product/Collection.php复制到本地.
addOrderedQty()中,更改行

->where('parent_item_id IS NULL')
Run Code Online (Sandbox Code Playgroud)

->where('e.type_id = ?', 'simple')
Run Code Online (Sandbox Code Playgroud)

你完成了.现在,您将看到每个报告中甚至仪表板上的基础简单产品,而不是总结的可配置产品.

millejano的原帖:https://gist.github.com/3149637/