您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop商品订单只要有一个包邮商品,整个商品订单全部包邮
陈莉汐2024-01-16 21:18:39ecshop商城教程已有人查阅
导读ecshop商品订单只要有一个包邮商品,整个商品订单全部包邮1. includes/lib_order.php搜索“查看购物车中是否全为免运费商品,若是则
ecshop商品订单只要有一个包邮商品,整个商品订单全部包邮
includes/lib_order.php搜索“查看购物车中是否全为免运费商品,若是则把运费赋为零”,将
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']);
OK
本文标签:
很赞哦! ()
相关文章
随机图文
-
如何去掉删除ecshop后台升级补丁提示及删除云激活提示
怎么删除ECSHOP后台补丁升级提示及云升级提示?答:去掉admin/templates/start.htm中 -
ecshop首页发货查询增加收货人收货地址发货时间配送方式
1、修改 index.php 的 index_get_invoice_query() 函数部分;2、然后修改模板文件 library/invoice_query.lbi;3、以上方法是完全显示收货人的全称,如果想要以“王**” -
ecshop后台设置模板排序让商品分类排序按数字大小排序
设置模板排序调用,从1开始;1、admin\includes\lib_template.php这样 cat_goods.lbi 里面能使用 $goods_cat.i 排序了 。 -
ecshop去版权标志删除Powered by ecshop
ECSHOP去版权标志删除Powered by ECShop2.7.4 2.7.3 2.7.2。前台部分:1:去掉头部TITLE部分的ECSHOP演示站 Powered by ecshop
留言与评论 (共有 条评论) |