mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	add user discount
This commit is contained in:
		| @@ -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 | ||||
|         if ($order->total_amount <= 0) { | ||||
|             $order->total_amount = 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user