Magento产品已订购报表 - 捆绑产品
问题描述:
我正在查看自定义Magento报表。我了解,默认的“产品订单”报告可从聚合数据表中获取产品销售数据。但是,这些仅包含捆绑中简单产品类型的信息,而不包含捆绑产品ID本身。Magento产品已订购报表 - 捆绑产品
一个人如何简单地为捆绑产品销售生成报告?
非常感谢。
答
看看http://magentocoder.jigneshpatel.co.in/create-custom-reports-in-magento-admin/
你应该能够完成你想要改变这行代码
$compositeTypeIds = Array (
'0' => 'grouped',
'1' => 'simple',
'2' => 'bundle'
);
$productTypes = $this->getConnection()->quoteInto(' AND (e.type_id NOT IN (?))', $compositeTypeIds);
到
$compositeTypeIds = Array (
'2' => 'bundle'
);
$productTypes = $this->getConnection()->quoteInto(' AND (e.type_id IN (?))', $compositeTypeIds);