Page 1 of 1

Increase word count for Geo Zone Name

Posted: Fri Aug 31, 2012 3:43 am
by fiona86
Hi all,


May I know how can I increase the word count for Geo Zone Name? Currently, it is set at a limitation of 3 to 32 words.

Is this possible?

Re: Increase word count for Geo Zone Name

Posted: Fri Aug 31, 2012 5:51 am
by Avvici
In 1.5.2.1 + Open admin/controller/localisation/geo_zone.php and find this code:

Code: Select all

if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 32)) {
			$this->error['name'] = $this->language->get('error_name');
		}
Change it to what you like :)

Re: Increase word count for Geo Zone Name

Posted: Sat Sep 01, 2012 3:55 am
by fiona86
I tried this method before, but it does not work.

No more warning after saving but the full name that I typed in does not show up.

Anymore help?
avvici wrote:In 1.5.2.1 + Open admin/controller/localisation/geo_zone.php and find this code:

Code: Select all

if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 32)) {
			$this->error['name'] = $this->language->get('error_name');
		}
Change it to what you like :)

Re: Increase word count for Geo Zone Name

Posted: Sat Sep 01, 2012 4:01 am
by Avvici
Of course it works, I just tested it. Increase the number from 32 to something larger.

Re: Increase word count for Geo Zone Name

Posted: Sat Sep 01, 2012 4:41 am
by fiona86
It really doesn't work!

I'm using 1.5.4... My Geo Zone Name should be "Courier Delivery (Weekday, 8am - 12pm)" but it got cut off to "Courier Delivery (Weekday, 8am -" even though I've set the limit to larger than 32.

Re: Increase word count for Geo Zone Name

Posted: Mon Sep 03, 2012 5:50 am
by fiona86
Anymore help?! :(

Re: Increase word count for Geo Zone Name

Posted: Thu Sep 20, 2012 9:04 am
by digitaltag
I just had the same problem and with the first few post set me in the right direction.

You need to change the number to 128 (or whatever) in geo_zone.php

BUT

You then need to go into the database in phpmyadmin and increase the varchar to match the number you set in geo_zone.php.

It is in your opencart database in a table called "geo_zone". You need to change the second row called "name", set it to varchar(128) and bingo, it should work.

Re: Increase word count for Geo Zone Name

Posted: Tue Oct 09, 2012 3:56 am
by fragillan123
Thanks for the tips, im gonna try some of it. hope one works for me on my word counter.