Post by algis789 » 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

Image

New member

Posts

Joined
Wed Oct 14, 2020 10:15 pm

Post by IP_CAM » Mon Dec 21, 2020 8:53 am

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 ...

I am no longer active at the Forum. Please do NOT send me Personal Mails,
they will no longer be replied to.
My Github OC Site: https://github.com/IP-CAM
4'100 + FREE OC Extensions, on the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by paulfeakins » Mon Dec 21, 2020 7:43 pm

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

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by Asma Duramae » Tue Dec 22, 2020 12:15 am

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

Newbie

Posts

Joined
Wed Aug 19, 2020 12:02 am


Post by IP_CAM » Tue Dec 22, 2020 12:27 am

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

I am no longer active at the Forum. Please do NOT send me Personal Mails,
they will no longer be replied to.
My Github OC Site: https://github.com/IP-CAM
4'100 + FREE OC Extensions, on the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 26 guests