花魁直播高品质美女在线视频互动社区 - 花魁直播官方版

 歡迎來到素材無憂網(wǎng),按 + 收藏我們
登錄 注冊 退出 找回密碼

ecshop商品訂單只要有一個包郵商品,整個商品訂單全部包郵

時間: 2024-02-25 10:43 閱讀: 作者:素材無憂網(wǎng)

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']);
OK

版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!

轉(zhuǎn)載請注明: ecshop商品訂單只要有一個包郵商品,整個商品訂單全部包郵

標(biāo)簽: ecshop商品訂單  
相關(guān)文章
推薦文章
模板推薦