您還可以
在線咨詢添加客服咨詢詳情
您還可以
在線咨詢
咨詢熱線:15918671994
多用戶
商城系統(tǒng)
訂單
管理系統(tǒng)
訂貨
管理系統(tǒng)
多語言
商城系統(tǒng)
| 平臺演示 | 演示地址 | 賬號密碼 |
|---|---|---|
| PC前端 | http://test.wstmart.net/ |
掃碼咨詢客服 |
| 平臺后臺 | http://test.wstmart.net/admin | |
| 商家后臺 | http://test.wstmart.net/shop | |
| 供應商后臺 | http://test.wstmart.net/supplier/ | |
| 多語言多商戶 | http://dyy.wstmart.net/ |
安卓APP(用瀏覽器打開)
蘋果APP
小程序商城
微信商城
在\wstmart\common\model\order模型中,$orderGoods['goodsType'] 直接賦值,這里應該是改為 $orderGoods['goodsType'] = $goods['goodsType'];
具體代碼如下:
//創(chuàng)建訂單商品記錄
$orderGgoods = [];
$orderGoods['orderId'] = $orderId;
$orderGoods['goodsId'] = $goods['goodsId'];
$orderGoods['goodsNum'] = $goods['cartNum'];
$orderGoods['goodsPrice'] = $goods['shopPrice'];
$orderGoods['goodsSpecId'] = 0;
$orderGoods['goodsSpecNames'] = '';
$orderGoods['goodsName'] = $goods['goodsName'];
$orderGoods['goodsImg'] = $goods['goodsImg'];
$orderGoods['commissionRate'] = WSTGoodsCommissionRate($goods['goodsCatId']);
$orderGoods['goodsCode'] = '';
$orderGoods['goodsType'] = 1;
$orderGoods['extraJson'] = json_encode($goodsCards);
$orderGoods['promotionJson'] = '';
$orderGoods["orderGoodscommission"] = 0;
//計算訂單總傭金