mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update: add inventory limit
This commit is contained in:
		| @@ -85,6 +85,10 @@ class OrderController extends Controller | ||||
|             abort(500, __('Subscription plan does not exist')); | ||||
|         } | ||||
|  | ||||
|         if ($plan->inventory_limit !== NULL && !$plan->inventory_limit) { | ||||
|             abort(500, __('Current product is sold out')); | ||||
|         } | ||||
|  | ||||
|         if ($plan[$request->input('period')] === NULL) { | ||||
|             abort(500, __('This payment period cannot be purchased, please choose another period')); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user