Jump to content

How to add or remove fields in "create your account form" ?


minhkhoa

Recommended Posts

Dear all,

 

Pls to show me how to add/remove field in "create your account form " , it's at the login step. I want to remove some fields as company, address (line 2)... I removed a code in authtication.tpl , but i didn't work.

 

Help me!

Thank you.

Link to comment
Share on other sites

hi,

i found the code which processing data fields for removing that. so, i want to remove the display which the customer can see or input it......

i tried to delete some code or all code in authentication.tpl, but when i click 'create your account' button, it directs to next step with any errors normally like that i never change something.

pls, show me the point where i should be modified.

Thank you !

Link to comment
Share on other sites

To display the create your account form, the function's below :

public function displayContent()

{

$this->processAddressFormat();

echo ('vao displaycontent trong authcontroller <br>');

parent::displayContent();

self::$smarty->display(_PS_THEME_DIR_.'authentication.tpl');

}

 

But the 'authentication.tpl' template is not template which the form applies. So, i can't change the form as i wish.

pls, help me !

Thank you.

Link to comment
Share on other sites

  • 3 weeks later...

Hello Friends

You can do this from the "backend"

 

 

 

go to

 

Shipping / Countries / choose your country / Address format:

 

 

 

it Available fields

 

 

firstname lastname

company

vat_number

address1

address2

postcode city

Country: name

phone

 

=========

If that is unnecessary to simply remove the field

 

===================

 

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...
  • 6 months later...

Hi Thanks NIKS I've got this

firstname lastname

company

vat_number

address1

address2

postcode city

Country: name

phone

 

However, my form is displaying D.O.B and other fields that are not required. Do I have to comment these out in the code

THanks

Link to comment
Share on other sites

  • 2 weeks later...

I need to know how to ADD a field to the customer account form. Will simply adding it to the template save the information in the db?

 

I need to add radio button gender field.

 

Can you point me in the right direction?

 

thanks

 

Using Prestashop Version: 1.4.8.3

Edited by bjp (see edit history)
Link to comment
Share on other sites

as the same , there , i have a similary problem

 

 

Am not I too late asking about county field here.

 

I am a new bie here,

 

I would like to

 

1. add additional field to my presta registration.,

2. this field is county

 

This field will a county field, that should be optionaly field coresponding to the county list in the dbasae.

 

Could someone here help me to do this...??

 

I have tried edit some , in authentication.tpl, but nothing still happened...

 

Is there some thing logicaly solving to do that..

 

thx..vy mu :rolleyes:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...