OpenCart ver 3.0.3.8 and probably others
Make back copies before modifying files. Twigs can be reset.
shop > catalog > controller > account > register.php
Delete lines 237 to 239
Code: Select all
if ((utf8_strlen($this->request->post['telephone']) < 3) || (utf8_strlen($this->request->post['telephone']) > 32)) {
$this->error['telephone'] = $this->language->get('error_telephone');
}
To get rid of the telephone line from the new customer registration page.
OpenCart Dashboard > Design > Theme Editor> account > register.twig
Starting Line 67, Delete:
Code: Select all
<div class="form-group required”>
<label class="col-sm-2 control-label" for="input-telephone">{{ entry_telephone }}</label>
<div class="col-sm-10">
<input type="tel" name="telephone" value="{{ telephone }}" placeholder="{{ entry_telephone }}" id="input-telephone" class="form-control" />
{% if error_telephone %}
<div class="text-danger">{{ error_telephone }}</div>
{% endif %} </div>
</div>
Code: Select all
<div class="form-group required”> to
<div class="form-group”>