垃圾堆中的精品

垃圾堆中的精品

ecshop 修改之下单必选项 改电话为不必选

1.需要修改的文件有 js/shopping_flow.js includes/lib_order.php temes/模板文件/user_transaction.dwt temes/模板文件/library/consignee.lbi 2. 修改shopping_flow.js文件 找到function checkConsignee(frm) 如修改电话为不必填 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); } } 删除掉 3 修改user_transaction.dwt {$lang.require_field}就代表必填项 如修改电话为不必填删除 {$lang.require_field} 中的{$lang.require_field} 4修改consignee.lbi同上 5修改lib_order.php lib_order.php是人们最容易忽视的文件 里面有猫腻哦 找到function check_consignee_info($consignee, $flow_type) 里面的!empty($consignee['consignee']) && !empty($consignee['country']) && !empty($consignee['email']) && !empty($consignee['tel']); 还是那修改电话为不必填说 删除 && !empty($consignee['tel'])即可 今天弄里一下午加一晚才弄出来 不容易啊

评论回复

回到顶部