mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: add inventory limit
This commit is contained in:
parent
aa65440556
commit
e086586e8e
@ -85,6 +85,10 @@ class OrderController extends Controller
|
|||||||
abort(500, __('Subscription plan does not exist'));
|
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) {
|
if ($plan[$request->input('period')] === NULL) {
|
||||||
abort(500, __('This payment period cannot be purchased, please choose another period'));
|
abort(500, __('This payment period cannot be purchased, please choose another period'));
|
||||||
}
|
}
|
||||||
|
@ -92,5 +92,6 @@
|
|||||||
"Uh-oh, we've had some problems, we're working on it.": "Uh-oh, we've had some problems, we're working on it",
|
"Uh-oh, we've had some problems, we're working on it.": "Uh-oh, we've had some problems, we're working on it",
|
||||||
"This subscription reset package does not apply to your subscription": "This subscription reset package does not apply to your subscription",
|
"This subscription reset package does not apply to your subscription": "This subscription reset package does not apply to your subscription",
|
||||||
"Login to :name": "Login to :name",
|
"Login to :name": "Login to :name",
|
||||||
"Sending frequently, please try again later": "Sending frequently, please try again later"
|
"Sending frequently, please try again later": "Sending frequently, please try again later",
|
||||||
|
"Current product is sold out": "Current product is sold out"
|
||||||
}
|
}
|
||||||
|
@ -92,5 +92,6 @@
|
|||||||
"Uh-oh, we've had some problems, we're working on it.": "遇到了些问题,我们正在进行处理",
|
"Uh-oh, we've had some problems, we're working on it.": "遇到了些问题,我们正在进行处理",
|
||||||
"This subscription reset package does not apply to your subscription": "该订阅重置包不适用于你的订阅",
|
"This subscription reset package does not apply to your subscription": "该订阅重置包不适用于你的订阅",
|
||||||
"Login to :name": "登入到 :name",
|
"Login to :name": "登入到 :name",
|
||||||
"Sending frequently, please try again later": "发送频繁,请稍后再试"
|
"Sending frequently, please try again later": "发送频繁,请稍后再试",
|
||||||
|
"Current product is sold out": "当前商品已售罄"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user