优惠全部云服务器首月 8 折,优惠码 CLOUD去领取

让ecshop某等级以上的会员才支持货到付款

· 阅读约 1 分钟

找到ecshop文件 includes\lib_order.php
约274行  
    if (!$support_cod )
    {
        $sql .= ‘AND is_cod = 0 ‘; // 如果不支持货到付款
    }
改成
   if (!$support_cod || $_SESSION[‘user_rank’] <= 1) 
    {
        $sql .= ‘AND is_cod = 0 ‘; // 如果不支持货到付款
    }
$_SESSION[‘user_rank’]为用户等级ID。
可以改成你想要的等级

相关文章

更多「网站和优化」文章服务器使用指南