Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stock status for stores #13889

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion upload/admin/language/en-gb/setting/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
$_['help_stock_display'] = 'Display stock quantity on the product page.';
$_['help_stock_warning'] = 'Display out of stock message on the shopping cart page if a product is out of stock but stock checkout is yes. (Warning always shows if stock checkout is no)';
$_['help_stock_checkout'] = 'Allow customers to still checkout if the products they are ordering are not in stock.';
$_['help_stock_status'] = 'Set the default stock status when a product is awailable on stock.';
$_['help_stock_status'] = 'Set the default stock status when a product is available on stock.';
$_['help_affiliate_status'] = 'If the affiliate system will not be used, you can disable it.';
$_['help_affiliate_approval'] = 'Automatically approve any new affiliates who sign up.';
$_['help_affiliate_auto'] = 'Automatically add commission when each order reaches the complete status.';
Expand Down
13 changes: 12 additions & 1 deletion upload/admin/view/template/setting/store_form.twig
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,17 @@
<div class="form-text">{{ help_stock_checkout }}</div>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2 col-form-label">{{ entry_stock_status }}</label>
<div class="col-sm-10">
<select name="config_stock_status_id" id="input-stock-status" class="form-select">
{% for stock_status in stock_statuses %}
<option value="{{ stock_status.stock_status_id }}"{% if stock_status.stock_status_id == config_stock_status_id %} selected{% endif %}>{{ stock_status.name }}</option>
{% endfor %}
</select>
<div class="form-text">{{ help_stock_status }}</div>
</div>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -677,4 +688,4 @@ $('#input-country').on('change', function() {

$('#input-country').trigger('change');
//--></script>
{{ footer }}
{{ footer }}