Jump to content

How do I add new fields in the registration form PS 1.5.4.1?


Recommended Posts

  • 7 months later...

Hello!

 

Can someone help me with a tutorial or modified files to add fields (IBAN bank) form a site Registerto done with PrestaShop 1.5.4.1?

 

 

I managed to add new fields chaning the following files.

 

1) I am using default theme

2) Prestashop 1.5.6.2

3) I manually added the fields to the MySQL DB in the table ps_address

4) After the changes below, to show the new fileds inside the BackOffice ie orders, pdf invoice etc, I had to  add the new fields to Localization->Country->Edit address

5) NOTE : Do not name your new fields with text including  "id" or "id_" or you will never see that fields in the step (4).

 

C:\xampp181\htdocs\prestashop15\classes\Address.php
C:\xampp181\htdocs\prestashop15\themes\default\address.tpl
C:\xampp181\htdocs\prestashop15\themes\default\mobile\address.tpl
C:\xampp181\htdocs\prestashop15\controllers\admin\AdminAddressesController.php
C:\xampp181\htdocs\prestashop15\controllers\admin\AdminCountriesController.php
C:\xampp181\htdocs\prestashop15\themes\default\authentication.tpl
C:\xampp181\htdocs\prestashop15\themes\default\mobile\authentication.tpl
C:\xampp181\htdocs\prestashop15\themes\default\mobile\authentication-create-account.tpl
C:\xampp181\htdocs\prestashop15\admin9914\themes\default\template\controllers\addresses\helpers\form\form.tpl
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

 

hi Nemo1! i wanted to follow your tutorial with adding a field in Customer fields. however, i'm not quite sure what to change in identity.tpl and authentication.tpl, as well as order-opc-new-account.tpl

 

a little help will be very much appreciated :)

thank you

Link to comment
Share on other sites

  • 2 months later...

 

Hi,

 

Nice tutorial at Bits and Chips but for me is working only if the referral code is filled. If I leave it blank : "An error occurred while creating your account".

 

 

I tried to remove 'validate' => 'isGenericName' but no results. Also tried to edit like this:

 

array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => false, 'size' => 64),

 

but no results.

 

Any ideas how to fix this? Thank you.

Link to comment
Share on other sites

×
×
  • Create New...