400-809-6709
RH98 · 最新动态

ecshop 收货人信息必填修改, 修改必填项,删除必填项,修改删除

来源:瑞恒网络 浏览:
ecshop 收货人信息必填修改, 修改必填项,删除必填项,修改删除邮箱必填

1:如何设置 ecshop “ 收货人姓名”为可选项?

    打开js/shopping_flow.js文件,找到checkConsignee()函数

   /*if (Utils.isEmpty(frm.elements['consignee'].value))
{
    err = true;
    msg.push(consignee_not_null);
}*/
     注释掉这一段。

    flow.php中

    /*if (!check_consignee_info($consignee, $flow_type))
    {
      
        ecs_header("Location: flow.php?step=consignee\n");
        exit;
    }*/

   这段该注释掉

   2:如何设置 ecshop "详细地址"为选填项

    打开js/shopping_flow.js文件,找到checkConsignee()函数

   注释掉下面

   /*
if (frm.elements['address'] && Utils.isEmpty(frm.elements['address'].value))
{
    err = true;
    msg.push(address_not_null);
}*/

   flow.php中

    /*if (!check_consignee_info($consignee, $flow_type))
    {
      
        ecs_header("Location: flow.php?step=consignee\n");
        exit;
    }*/

   这段该注释掉

   3:如何设置 ecshop "电子邮件地址"为选填项

    打开js/shopping_flow.js文件,找到checkConsignee()函数

   注释掉下面

   if ( ! Utils.isEmail(frm.elements['email'].value))
{
    err = true;
    msg.push(invalid_email);
}

   flow.php中

    /*if (!check_consignee_info($consignee, $flow_type))
    {
      
        ecs_header("Location: flow.php?step=consignee\n");
        exit;
    }*/

   这段该注释掉

   4:如何设置 ecshop"电话"为选填项

     打开js/shopping_flow.js文件,找到checkConsignee()函数

   注释掉下面

   /*
if (Utils.isEmpty(frm.elements['tel'].value))
{
    err = true;
    msg.push(tele_not_null);
}
else
{
    if (!Utils.isTel(frm.elements['tel'].value))
    {
      err = true;
      msg.push(tele_invaild);
    }
}
*/

   flow.php中

    /*if (!check_consignee_info($consignee, $flow_type))
    {
      
        ecs_header("Location: flow.php?step=consignee\n");
        exit;
    }*/

   这段该注释掉

 

 

注意最后一步需要修改ia

去掉email必填项,还必须在修改 includes/lib_order.php文件
     将 “check_consignee_info”函数中的检测语句修改,

← Ecshop后台编辑器设定默认值,商品描述默认,商品描述编辑默认值
返回动态列表

准备好重塑网站让生意找上门了吗?

免费提供出海网站可行性评估与 AI 排名和 SEO 诊断报告