fix : coupon
This commit is contained in:
@@ -260,7 +260,7 @@ trait OrderTrait
|
|||||||
protected function computePrice(): void
|
protected function computePrice(): void
|
||||||
{
|
{
|
||||||
$this->orderRes['good_ids'] = $this->cartSecondData;
|
$this->orderRes['good_ids'] = $this->cartSecondData;
|
||||||
|
// var_dump($this->skuArr);
|
||||||
foreach ($this->cartSecondData as $oneCopies) {
|
foreach ($this->cartSecondData as $oneCopies) {
|
||||||
$oneCopiesTotalPrice = '0.00';
|
$oneCopiesTotalPrice = '0.00';
|
||||||
|
|
||||||
@@ -272,7 +272,7 @@ trait OrderTrait
|
|||||||
if (empty($oneCopiesGoodInfo[$key])) {
|
if (empty($oneCopiesGoodInfo[$key])) {
|
||||||
$oneCopiesGoodInfo[$key] = [
|
$oneCopiesGoodInfo[$key] = [
|
||||||
'num' => $oneGood,
|
'num' => $oneGood,
|
||||||
'good_name' => $this->skuArr[$key]['spu_title'] ?? '' . $this->skuArr[$key]['title'] ?? '',
|
'good_name' => ($this->skuArr[$key]['spu_title'] ?? '').'-'.($this->skuArr[$key]['title'] ?? ''),
|
||||||
'good_url' => $this->skuArr[$key]['url'] ?? '',
|
'good_url' => $this->skuArr[$key]['url'] ?? '',
|
||||||
'unit_price' => $this->skuArr[$key]['price'],
|
'unit_price' => $this->skuArr[$key]['price'],
|
||||||
'type' => $this->skuArr[$key]['type'],
|
'type' => $this->skuArr[$key]['type'],
|
||||||
|
|||||||
Reference in New Issue
Block a user