News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Guest Checkout First Name limit

Started by josephnwy, March 18, 2014, 06:10:02 AM

Previous topic - Next topic

josephnwy

Hi, i am a newbie.

Guest check out information about the "FIRST NAME" fill up, is it possible to change the minimum character to 2 instead of 3?

Thank you.

gordontaylor

#1
To be clear, you're saying that you want to change the minimum characters in the name field from 3 to 2?

If that is what your asking, you'll need to do some code changes. Do you have that knowledge?

josephnwy

yes. i want to change the minimum input of 3 to minimum 2.

where is the file located?  :D

gordontaylor

The path to that file is

storefront>view>default_html5>template>pages>checkout>guest_step_1.tpl

eCommerce Core

Looks at:
https://github.com/abantecart/abantecart-src/blob/6be2a3cd77004cd415c5f09007186ed668131033/public_html/storefront/controller/pages/checkout/guest_step_1.php

About line 518, change 3 to 2


private function _validate() {
if ((strlen(utf8_decode($this->request->post[ 'firstname' ])) < 3) || (strlen(utf8_decode($this->request->post[ 'firstname' ])) > 32)) {
$this->error[ 'firstname' ] = $this->language->get('error_firstname');
}
"If you're in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent."
― Warren Buffett

josephnwy


Forum Rules Code of conduct
AbanteCart.com 2010 -