首先通过在flow.dwt中,查找flow.php?step=consignee中的关键字 consignee(结算中心)查找所在模板/Library/consignee.lbi 大概57行 把必填去掉,其次 在js/shopping_flow.js里边注释掉
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);
}
}
再把
else{
if (!Utils.isTel(frm.elements[‘mobile’].value)){
err = true;
msg.push(mobile_invaild);
}
}
添加到
if (frm.elements[‘mobile’] &&
frm.elements[‘mobile’].value.length > 0 &&
(!Utils.isTel(frm.elements[‘mobile’].value))){
err = true;
msg.push(mobile_invaild);
}
(下边)
else{
if (!Utils.isTel(frm.elements[‘mobile’].value)){
err = true;
msg.push(mobile_invaild);
}
}
然后再includes/lib_order.php里边找到function check_consignee_info($consignee, $flow_type)方法 查找[‘tel’]逐个修改。剩下就是修改语言包里的内容了。