Enhancement

Add coupon unlimited usage 0 is unlimited
Add more logic to coupon brute force attack
This commit is contained in:
Focuslinkstech
2024-12-17 19:59:04 +01:00
parent 8a36746a0f
commit 67a097fddf
3 changed files with 24 additions and 11 deletions

View File

@ -56,8 +56,8 @@
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Max Usage')}</label>
<div class="col-md-6">
<input type="number" class="form-control" name="max_usage" min="1" required>
<p class="help-block"><small>{Lang::T('Maximum number of times this coupon can be used')}</small></p>
<input type="number" class="form-control" name="max_usage" value="0" required>
<p class="help-block"><small>{Lang::T('Maximum number of times this coupon can be used 0 is Unlimited')}</small></p>
</div>
</div>

View File

@ -56,9 +56,8 @@
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Max Usage')}</label>
<div class="col-md-6">
<input type="number" class="form-control" name="max_usage" min="1" required value="{$coupon['max_usage']}">
<p class="help-block"><small>{Lang::T('Maximum number of times this coupon can be
used')}</small></p>
<input type="number" class="form-control" name="max_usage" required value="{$coupon['max_usage']}">
<p class="help-block"><small>{Lang::T('Maximum number of times this coupon can be used 0 is Unlimited')}</small></p>
</div>
</div>