我正在考虑定制Magento报告。我知道默认的Products Order报表从聚合数据表中获取产品销售数据。但是,这些只包含捆绑包中简单产品类型的信息,而不是捆绑包产品ids本身。
如何制作一份简单的捆绑产品销售报告?
非常感谢。
发布于 2012-11-02 19:49:13
看一看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);https://stackoverflow.com/questions/13192481
复制相似问题