diff --git a/app/Service/v3/Implementations/OrderOnlineService.php b/app/Service/v3/Implementations/OrderOnlineService.php index daf598d..13fa0c6 100644 --- a/app/Service/v3/Implementations/OrderOnlineService.php +++ b/app/Service/v3/Implementations/OrderOnlineService.php @@ -289,7 +289,11 @@ class OrderOnlineService implements OrderOnlineServiceInterface $orderAmount = bcadd((string)$orderAmount, '0', 2); $totalAmount = bcadd((string)$totalAmount, (string)$orderAmount); - $totalAmount = bcadd((string)$totalAmount, (string)$deliveryAmount); + + if ($shippingType != Shipping::TYPE_SELF_TAKE) { + $totalAmount = bcadd((string)$totalAmount, (string)$deliveryAmount); + } + $totalAmount = bcadd((string)$totalAmount, (string)$serviceMoney); $totalAmount = bcsub((string)$totalAmount, (string)$couponMoney, 2);