|
@@ -148,6 +148,10 @@ class OrderController extends Controller
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ // user only discount
|
|
|
|
+ if ($user->discount) {
|
|
|
|
+ $order->total_amount = $order->total_amount * ($user->discount / 100);
|
|
|
|
+ }
|
|
// free process
|
|
// free process
|
|
if ($order->total_amount <= 0) {
|
|
if ($order->total_amount <= 0) {
|
|
$order->total_amount = 0;
|
|
$order->total_amount = 0;
|