Answer the question
In order to leave comments, you need to log in
Where can I edit required fields for a product?
Good afternoon, for the product there is a mandatory field Article. If it is empty, the item is not saved. How can I remove required from this field. Looked in admin/controller but nothing there!
Answer the question
In order to leave comments, you need to log in
for the product there is a mandatory field Article.
Looked in admin/controller but nothing there!
validateForm()
from the controller, admin/controller/catalog/product.php
comment out these lines:if ((utf8_strlen($this->request->post['model']) < 1) || (utf8_strlen($this->request->post['model']) > 64)) {
$this->error['model'] = $this->language->get('error_model');
}
admin/view/template/catalog/recurring_form.twig
<div class="form-group required">
<label class="col-sm-2 control-label" for="input-model">{{ entry_model }}</label>
<div class="col-sm-10">
<input type="text" name="model" value="{{ model }}" placeholder="{{ entry_model }}" id="input-model" class="form-control"/>
{% if error_model %}
<div class="text-danger">{{ error_model }}</div>
{% endif %}</div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question