首先先来说下怎么删除电话、邮箱
1.注册页面电话/邮箱删除:后台会员注册项设置---电话打勾去掉 邮箱打勾去掉
2. 打开js/shopping_flow.js文件,找到checkConsignee()函数
1:如何设置ecshop“收货人姓名”为可选项? 打开js/shopping_flow.js文件,找到checkConsignee()函数 /*if (Utils.isEmpty(frm.elements['consignee'].value)) flow.php中 /*if (!check_consignee_info($consignee, $flow_type)) 这段该注释掉 2:如何设置ecshop'详细地址'为选填项 打开js/shopping_flow.js文件,找到checkConsignee()函数 注释掉下面 /* flow.php中 /*if (!check_consignee_info($consignee, $flow_type)) 这段该注释掉
如果只要电话和邮箱这里开始就可以了:
3:如何设置ecshop'电子邮件地址'为选填项 打开js/shopping_flow.js文件,找到checkConsignee()函数 注释掉下面 if ( ! Utils.isEmail(frm.elements['email'].value)) flow.php中 /*if (!check_consignee_info($consignee, $flow_type)) 这段该注释掉 4:如何设置ecshop'电话'为选填项 打开js/shopping_flow.js文件,找到checkConsignee()函数 注释掉下面 /* flow.php中 /*if (!check_consignee_info($consignee, $flow_type)) 这段该注释掉
然后打开:library/这个文件夹 找到consignee.lbi文件 搜索: {$lang.phone}:{$lang.require_field}
直接删除 这样就删除掉电话了,如果要保留 删除这个就可以{$lang.require_field}===必填 这句话
ecshop'电子邮件地址'为选填项:
{$lang.email_address}: {$lang.require_field} 直接删除 这样就删除掉电子邮件地址了,如果要保留 删除这个就可以{$lang.require_field}===必填 这句话
用户中心还有收货人信息电话和邮箱: 打开flow.dwt
找到电话删除 找到邮箱删除 现在谈谈手机和固定电话请至少填写一项修改方法:
打开js/shopping_flow.js文件,找到checkConsignee()函数 if (Utils.isEmpty(frm.elements['tel'].value))
改成:
if ((Utils.isEmpty(frm.elements['tel'].value))&&(Utils.isEmpty(frm.elements['mobile'].value))) 然后打开languages/zh_cn/shiping_flow.php 中,查找 $_LANG['flow_js']['tele_not_null'] ,大概109行,将此行修改为 $_LANG['flow_js']['tele_not_null'] = '手机和固定电话请至少填写一项!'; |
|