Post by fiona86 » Fri Aug 31, 2012 3:43 am

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?

Newbie

Posts

Joined
Tue Feb 15, 2011 7:34 pm

Post by Avvici » Fri Aug 31, 2012 5:51 am

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 :)

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by fiona86 » Sat Sep 01, 2012 3:55 am

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 :)

Newbie

Posts

Joined
Tue Feb 15, 2011 7:34 pm

Post by Avvici » Sat Sep 01, 2012 4:01 am

Of course it works, I just tested it. Increase the number from 32 to something larger.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by fiona86 » Sat Sep 01, 2012 4:41 am

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.

Newbie

Posts

Joined
Tue Feb 15, 2011 7:34 pm

Post by fiona86 » Mon Sep 03, 2012 5:50 am

Anymore help?! :(

Newbie

Posts

Joined
Tue Feb 15, 2011 7:34 pm

Post by digitaltag » Thu Sep 20, 2012 9:04 am

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.

Newbie

Posts

Joined
Thu Aug 02, 2012 8:07 pm

Post by fragillan123 » Tue Oct 09, 2012 3:56 am

Thanks for the tips, im gonna try some of it. hope one works for me on my word counter.

Newbie

Posts

Joined
Tue Oct 09, 2012 3:54 am
Who is online

Users browsing this forum: No registered users and 18 guests