如何增加显示元素报告的数量最多
How to increase amount shown elements report most viewed
我想增加报告中显示元素的数量
"most viewed articles"。这是像这样的报告
2015-01-01 => 这 5 个产品被浏览最多
这不是前端中的(!)"recently viewd items"。这是给管理员的报告。
我希望它可以在此处更改:
app\code\core\Mage\Adminhtml\Block\Report\Product
我试过了\app\code\core\Mage\Adminhtml\Block\Report\Grid.php
第 52 行 protected $_subReportSize = 100;
而不是 5
但没有任何效果
有人知道在哪里控制"sub elements"的数量吗?
限制实际上定义在class Mage_Reports_Model_Resource_Report_Product_Viewed_Collection
.
文件:app\code\core\Mage\Reports\Model\Resource\Report\Product\Viewed\Collection.php
class Mage_Reports_Model_Resource_Report_Product_Viewed_Collection
extends Mage_Reports_Model_Resource_Report_Collection_Abstract
{
/**
* Rating limit
*
* @var int
*/
protected $_ratingLimit = 5; //change this value
.....
}
我想增加报告中显示元素的数量 "most viewed articles"。这是像这样的报告 2015-01-01 => 这 5 个产品被浏览最多
这不是前端中的(!)"recently viewd items"。这是给管理员的报告。
我希望它可以在此处更改:
app\code\core\Mage\Adminhtml\Block\Report\Product
我试过了\app\code\core\Mage\Adminhtml\Block\Report\Grid.php
第 52 行 protected $_subReportSize = 100;
而不是 5
但没有任何效果
有人知道在哪里控制"sub elements"的数量吗?
限制实际上定义在class Mage_Reports_Model_Resource_Report_Product_Viewed_Collection
.
文件:app\code\core\Mage\Reports\Model\Resource\Report\Product\Viewed\Collection.php
class Mage_Reports_Model_Resource_Report_Product_Viewed_Collection
extends Mage_Reports_Model_Resource_Report_Collection_Abstract
{
/**
* Rating limit
*
* @var int
*/
protected $_ratingLimit = 5; //change this value
.....
}