diff --git a/upload/custom/panel_templates/Default/store/fields.tpl b/upload/custom/panel_templates/Default/store/fields.tpl index abe3618..2eb14fe 100644 --- a/upload/custom/panel_templates/Default/store/fields.tpl +++ b/upload/custom/panel_templates/Default/store/fields.tpl @@ -71,7 +71,7 @@
- {if $field.identifier != '{quantity}'}{else}{/if} + {if !$field.reserved}{else}{/if}
diff --git a/upload/custom/panel_templates/Default/store/fields_form.tpl b/upload/custom/panel_templates/Default/store/fields_form.tpl index 97b8d2c..01ee3d5 100644 --- a/upload/custom/panel_templates/Default/store/fields_form.tpl +++ b/upload/custom/panel_templates/Default/store/fields_form.tpl @@ -47,7 +47,7 @@
- +
@@ -55,7 +55,7 @@
- {foreach from=$TYPES item=type} {/foreach} @@ -67,7 +67,7 @@
- +
diff --git a/upload/modules/Store/pages/panel/fields.php b/upload/modules/Store/pages/panel/fields.php index 6736113..b3a041b 100644 --- a/upload/modules/Store/pages/panel/fields.php +++ b/upload/modules/Store/pages/panel/fields.php @@ -43,6 +43,7 @@ 'description' => Output::getClean($field->description), 'type' => $field_types[$field->type]['name'], 'required' => Output::getClean($field->required), + 'reserved' => ($field->identifier == 'quantity' || $field->identifier == 'price'), 'edit_link' => URL::build('/panel/store/fields/', 'action=edit&id='.$field->id), 'delete_link' => URL::build('/panel/store/fields/', 'action=delete&id=' . $field->id) ]; @@ -292,6 +293,7 @@ 'REGEX_VALUE' => Output::getClean($field->regex ?? ''), 'REQUIRED' => $language->get('admin', 'required'), 'REQUIRED_VALUE' => $field->required, + 'RESERVED_FIELD' => ($field->identifier == 'quantity' || $field->identifier == 'price') ]); $template_file = 'store/fields_form.tpl';