Answer the question
In order to leave comments, you need to log in
How to make a field optional in ocStore?
There are required fields in the checkout block:
<div class="form-group required">
<label class="control-label" for="input-payment-address-1">{{ entry_address_1 }}</label>
<input type="text" name="address_1" value="{{ address_1 }}" placeholder="{{ entry_address_1 }}" id="input-payment-address-1" class="form-control" />
</div>
Answer the question
In order to leave comments, you need to log in
Comment out these lines in payment_address.php, shipping_address.php and guest.php:
if ((utf8_strlen(trim($this->request->post['address_1'])) < 3) || (utf8_strlen(trim($this->request->post['address_1'])) > 128)) {
$json['error']['address_1'] = $this->language->get('error_address_1');
}
<div class="form-group required">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question