Page 1 of 1

Remove last name field

Posted: Mon Sep 12, 2016 10:22 am
by Patrikiden
Hello, I have removed the code for the lastname field from every file that i can find. Everything is working exept for this:
In Customer Account, Edit address and in order history view i now have this:

Name Lastname {lastname}

Eg,

Clint Eastwood {lastname}

I cant find anyware to remove the {lastname} part.

Any boudy have some idea pleas?

Thank you.

Re: Remove last name field

Posted: Mon Sep 12, 2016 12:17 pm
by KeyLeeAM
Where do you want to remove lastname? Did you not use lastname as an information?

Re: Remove last name field

Posted: Mon Sep 12, 2016 2:20 pm
by Patrikiden
KeyLeeAM wrote:Where do you want to remove lastname? Did you not use lastname as an information?
Everyware. I'm renanaming First Name to Full Name. So i want to remove Last Name from the hole system.

Re: Remove last name field

Posted: Mon Sep 12, 2016 2:29 pm
by artcore
See admin menu -> localisation/country/edit -> address format

Re: Remove last name field

Posted: Mon Sep 12, 2016 7:05 pm
by Patrikiden
Yes, but this does not hide the Last Name field from every form, right?

Re: Remove last name field

Posted: Mon Sep 12, 2016 7:58 pm
by artcore
Not sure if it's used everywhere but for orders it is. Make your own template leaving out the {lastname} placeholder.
{firstname}
{city} etc
You can see all placeholders in an array in the model/checkout/order.php for instance.
But I don't know what changes you made so no idea if it has an impact on other spots.

Re: Remove last name field

Posted: Mon Sep 12, 2016 9:56 pm
by Patrikiden
artcore wrote:Not sure if it's used everywhere but for orders it is. Make your own template leaving out the {lastname} placeholder.
{firstname}
{city} etc
You can see all placeholders in an array in the model/checkout/order.php for instance.
But I don't know what changes you made so no idea if it has an impact on other spots.
I gave this upp, to much work. But thank's for your help.