关于修改ecshop后台查看商品页面的每页商品数量

2016-09-11 20:38 来源:www.chinab4c.com 作者:ecshop专家

ecshop后台默认是15个有点少
每次总要从新给设置一下比较麻烦

admin\\includes\\inc_main.php

function page_and_size($filter)
{
    if (isset($_REQUEST['page_size']) && intval($_REQUEST['page_size']) > 0)
    {
        $filter['page_size'] = intval($_REQUEST['page_size']);
    }
    elseif (isset($_COOKIE['ECSCP']['page_size']) && intval($_COOKIE['ECSCP']['page_size']) > 0)
    {
        $filter['page_size'] = intval($_COOKIE['ECSCP']['page_size']);
    }
    else
    {
        $filter['page_size'] = 15;
    }

最后的$filter['page_size'] = 15;
改为$filter['page_size'] = 20;