ecshop订单中只要有一个是包邮商品,就整个订单都包邮
2016-09-07 22:02 来源:www.chinab4c.com 作者:ecshop专家
includes/lib_order.php搜索“查看购物车中是否全为免运费商品,若是则把运费赋为零”,将
$sql = 'SELECT count(*) FROM ' . $GLOBALS['ecs']->table('cart') . " WHERE `session_id` = '" . SESS_ID. "' AND `extension_code` != 'package_buy' AND `is_shipping` = 0";
修改为
$sql = 'SELECT count(*) FROM ' . $GLOBALS['ecs']->table('cart') . " WHERE `session_id` = '" . SESS_ID. "' AND `extension_code` != 'package_buy' AND `is_shipping` = 1";
再把
$total['shipping_fee'] = ($shipping_count == 0 AND $weight_price['free_shipping'] == 1) ?0 : shipping_fee($shipping_info['shipping_code'],$shipping_info['configure'], $weight_price['weight'], $total['goods_price'], $weight_price['number']);
修改为
$total['shipping_fee'] = ($shipping_count >= 1 AND $weight_price['free_shipping'] == 1) ?0 : shipping_fee($shipping_info['shipping_code'],$shipping_info['configure'], $weight_price['weight'], $total['goods_price'], $weight_price['number']);
即可以实现购物车中只要有一个商品是免邮费的则整个购物车中都免邮。
(责任编辑:chinab4c) |
最近更新
常用插件
- ecshop最小购买数量控制插
ecshop最小购买数量控制插件,这个插件主要是为我们提供一个十分方便...
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop2.7.1邮件发送插件
ecshop2.7.1邮件发送插件:该插件主要的开发思想是源于ecshop短信发送系统...
- ecshop2.7.2生成虚拟订单2.
以前我们开发过ecshop下的虚拟订单,就是客户在访问的时候,会自动生...
- ecshop二次开发商品购买增
图片1香...
ecshop热门问答
ecshop热门资料
ecshopJS模块切换
ecshop看看
ecshop操作
ecshop收费标准
ecshop户外家具 网站美工
ecshop化妆品
ecshop团购报名
ecshopdefault
ecshopshopex模板
javados
ecshop买一送一
ecshopredeclare
ecshop纠结
ecshop标题栏
ecshop兴趣
ecshop国外空间
ecshop提升网站排名
ecshop担保支付
ecshopECSHOP模板设计
ecshopsitmaps
ecshop剩余时间
ecshopsecond
邮件模板
uchome组
ecshop支付宝订单号
ecshop服装行业
ecshop中心点
ecshop咨询以及
ecshop动购买
ecshop说明文