Post by missright » Tue Feb 24, 2009 10:00 pm

The system will limit users from entering their address more than 64 characters, is there any possible ways to modify this? i do have some customers complain to me about this.... thanks

User avatar
New member

Posts

Joined
Fri Feb 13, 2009 12:39 pm

Post by liquidpele » Wed Feb 25, 2009 12:57 am

Edit the DB to allow larger addresses for that column, then edit the following locations to allow for larger addresses:

Code: Select all

root@ubuntu:/var/www/store/catalog# grep -r 64 *
controller/account/address.php:         if ((strlen($this->request->post['address_1']) < 3) || (strlen($this->request->post['address_1']) > 64)) {
controller/account/create.php:          if ((strlen($this->request->post['address_1']) < 3) || (strlen($this->request->post['address_1']) > 64)) {
controller/checkout/address.php:        if ((strlen($this->request->post['address_1']) < 3) || (strlen($this->request->post['address_1']) > 64)) {
controller/payment/protx.php:           $crypt = base64_encode($output);
language/english/account/address.php:$_['error_address_1']   = 'Address must be greater than 3 and less than 64 characters!';
language/english/account/create.php:$_['error_address_1']      = 'Address 1 must be greater than 3 and less than 64 characters!';
language/english/checkout/address.php:$_['error_address_1']  = 'Address 1 must be greater than 3 and less than 64 characters!';

New member

Posts

Joined
Mon Feb 23, 2009 11:58 pm

Post by Daniel » Wed Feb 25, 2009 5:01 am

這問題會更正於V1.1.9!

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by missright » Wed Feb 25, 2009 11:45 am

When will the v1.1.9 be released?
Really keen to upgrade to v1.1.9. Anyway never think that Daniel can type chinese , :D ;) ;D

User avatar
New member

Posts

Joined
Fri Feb 13, 2009 12:39 pm

Post by removed331062 » Wed Feb 25, 2009 2:55 pm

Is Daniel asian? :o

Curious, varchar is used as the data type for address_1 and address_2 but I thought that varchar doesn't zerofill if you don't use the entire 255 chars. Isn't it a variable-length string type? Why then would one need to limit its length? You might get some weird addresses from people who live in the middle of nowhere and those can be very long...
Daniel wrote: 這問題會更正於V1.1.9!
Is the length eliminated in v1.1.9?

New member

Posts

Joined
Wed Feb 18, 2009 5:02 pm

Post by Daniel » Wed Feb 25, 2009 6:39 pm

You have to set a limit in the database.

I'm not sure how to solve this problem. Are you sure you have UTF-8 setup.

I have extended the varchar limit to 128.

I'm not Asian. I just lived in Hong Kong for 4 years.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 94 guests