Post by timothysoong » Mon Jul 08, 2013 4:13 pm

How do I change the first name & last name field and make them into just "Full Name" when they register.

Cause I don't need two fields for a name.

I'm a newbie in this, please help.

Thanks
Tim

Newbie

Posts

Joined
Mon Jul 08, 2013 5:14 am

Post by Qphoria » Tue Jul 09, 2013 2:34 am

The easiest way would be to hide the lastname field and change the wording of "First name" to "Full name"
Note that you'll have to do this in MANY places (registered checkout, guest checkout, account create, new address, etc)

1. EDIT EACH OF THE FOLLOWING:
catalog/language/english/account/register.php
catalog/language/english/account/edit.php
catalog/language/english/account/address.php
catalog/language/english/checkout/register.php
catalog/language/english/checkout/guest.php
Possibly more

And change "First Name" to "Full Name"

2. EDIT EACH OF THE FOLLOWING:
catalog/controller/account/register.php
catalog/controller/account/edit.php
catalog/controller/account/address.php
catalog/controller/checkout/register.php
catalog/controller/checkout/guest.php
possibly others

And remove any lines with reference to "error_lastname"



overall it just isn't worth it.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by HAO » Tue Dec 20, 2016 4:19 pm

My environment is 2.3.0.2 version, But every version of this problem.

Because the store in Asia, the English-style name is not used to sort the format used.

Our habit is always full name, Or the sort of Last Name & First Name, So far the names of OpenCart are sorted, We still do not meet the actual needs.

We will only be able to modify the code like this, I think we should be able to let us choose the name format of the time.

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm

Post by phamxuanvinh2110 » Sat Jun 03, 2017 3:26 pm

Qphoria wrote:
Tue Jul 09, 2013 2:34 am
The easiest way would be to hide the lastname field and change the wording of "First name" to "Full name"
Note that you'll have to do this in MANY places (registered checkout, guest checkout, account create, new address, etc)

1. EDIT EACH OF THE FOLLOWING:
catalog/language/english/account/register.php
catalog/language/english/account/edit.php
catalog/language/english/account/address.php
catalog/language/english/checkout/register.php
catalog/language/english/checkout/guest.php
Possibly more

And change "First Name" to "Full Name"

2. EDIT EACH OF THE FOLLOWING:
catalog/controller/account/register.php
catalog/controller/account/edit.php
catalog/controller/account/address.php
catalog/controller/checkout/register.php
catalog/controller/checkout/guest.php
possibly others

And remove any lines with reference to "error_lastname"



overall it just isn't worth it.
no successfull... Help me... I using ver 2.3.0.2

New member

Posts

Joined
Mon Nov 28, 2016 11:41 am
Who is online

Users browsing this forum: No registered users and 87 guests