mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
update
This commit is contained in:
parent
1bf03b28c7
commit
b4e5eb26e3
@ -118,7 +118,7 @@ class OrderController extends Controller
|
|||||||
case 1: $order->discount_amount = $order->total_amount - $coupon->value;
|
case 1: $order->discount_amount = $order->total_amount - $coupon->value;
|
||||||
case 1: $order->discount_amount = $order->total_amount * ($coupon->value / 100);
|
case 1: $order->discount_amount = $order->total_amount * ($coupon->value / 100);
|
||||||
}
|
}
|
||||||
$order->amount_total = $order->amount_total - $order->discount_amount;
|
$order->total_amount = $order->total_amount - $order->discount_amount;
|
||||||
}
|
}
|
||||||
// free process
|
// free process
|
||||||
if ($order->total_amount <= 0) {
|
if ($order->total_amount <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user