Page 1 of 1
the length of "address"
Posted: Tue Feb 24, 2009 10:00 pm
by missright
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
Re: the length of "address"
Posted: Wed Feb 25, 2009 12:57 am
by liquidpele
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!';
Re: the length of "address"
Posted: Wed Feb 25, 2009 5:01 am
by Daniel
這問題會更正於V1.1.9!
Re: the length of "address"
Posted: Wed Feb 25, 2009 11:45 am
by missright
When will the v1.1.9 be released?
Really keen to upgrade to v1.1.9. Anyway never think that Daniel can type chinese ,

Re: the length of "address"
Posted: Wed Feb 25, 2009 2:55 pm
by removed331062
Is Daniel asian?
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?
Re: the length of "address"
Posted: Wed Feb 25, 2009 6:39 pm
by Daniel
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.