Added on option to only show in-stock products on the /products page (closes #1388)

This commit is contained in:
Bernd Bestel
2021-07-06 20:08:02 +02:00
parent 6530d0f9df
commit 1ead23cb87
5 changed files with 50 additions and 8 deletions

View File

@@ -71,7 +71,7 @@
</select>
</div>
</div>
<div class="col-12 col-md-6 col-xl-3">
<div class="col-12 col-md-6 col-xl-2">
<div class="form-check custom-control custom-checkbox">
<input class="form-check-input custom-control-input"
type="checkbox"
@@ -82,6 +82,17 @@
</label>
</div>
</div>
<div class="col-12 col-md-6 col-xl-2">
<div class="form-check custom-control custom-checkbox">
<input class="form-check-input custom-control-input"
type="checkbox"
id="show-only-in-stock">
<label class="form-check-label custom-control-label"
for="show-only-in-stock">
{{ $__t('Show only in-stock products') }}
</label>
</div>
</div>
<div class="col">
<div class="float-right">
<a id="clear-filter-button"