Page 1 of 1

Hide ZOne/state. help please

Posted: Sun Dec 20, 2020 9:57 pm
by algis789
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

Image

Re: Hide Zone/state. help please

Posted: Mon Dec 21, 2020 8:53 am
by IP_CAM
Hi, how to hide the ZONE / STATE box
it highly depends on OC Version and Theme used :D
And what exactly Modules did not work ? ???
Take the time for such, if you expect others, to waste their costly time for you ...

Re: Hide ZOne/state. help please

Posted: Mon Dec 21, 2020 7:43 pm
by paulfeakins
algis789 wrote:
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
Try this one: https://www.opencart.com/index.php?rout ... n_id=18848

Re: Hide ZOne/state. help please

Posted: Tue Dec 22, 2020 12:15 am
by Asma Duramae
add style="display:none" in div section inside register.twig

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>
then in register.php in controller folder, put comments like this

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');
			}
*/
it works for me

Re: Hide ZOne/state. help please

Posted: Tue Dec 22, 2020 12:27 am
by IP_CAM
Remove “Zone” Field
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.

https://www.opencart.com/index.php?rout ... n_id=36141