Hide ZOne/state. help please
Posted: Sun Dec 20, 2020 9:57 pm
Hi, how to hide the ZONE / STATE box, it is not needed in my country. The modules don't work, I've tried various ones. Thank you


OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
Try this one: https://www.opencart.com/index.php?rout ... n_id=18848
Code: Select all
<div class="form-group" style="display:none">
<label class="control-label" for="input-payment-zone">{{ entry_zone }}</label>
<select name="zone_id" id="input-payment-zone" class="form-control">
</select>
</div>
Code: Select all
/*if (isset($this->session->data['shipping_address']['zone_id'])) {
$data['zone_id'] = $this->session->data['shipping_address']['zone_id'];
} else {
$data['zone_id'] = '';
}*/
/*
if (!isset($this->request->post['zone_id']) || $this->request->post['zone_id'] == '' || !is_numeric($this->request->post['zone_id'])) {
$json['error']['zone'] = $this->language->get('error_zone');
}
*/
When your customers proceed to the section of billing information within their order, they have to fill in information about themselves – name, address, etc. In the default settings of OpenCart they have to fill in also the field called “Zone”. In some countries this information is useless and requiring it might seem unusual. The module simply removes this field, so it would not bother your customers.Remove “Zone” Field