Jump to content

Add and delete fields of the register


ecuc

Recommended Posts

Hi, I comment you

 

I need to change completely the register erasing some fields of which has and adding other new.
I know that the 2 files to touch are authentication.tpl and AuthController.php, but here goes my problem:

- In the authentication, all the fields come with a variable $smarty.post that don't understand exactly like how it would work if add new fields. Example:

<div class="required form-group">
   <label for="firstname">{l s='First name'} <sup>*</sup></label>
   <input type="text" class="is_required validate form-control" data-validate="isName" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" />
</div>

And afterwards to call them in the AuthController.php is a little mess for me.
Could anyone five me a hand with this?

Thanks and regards.

 

Link to comment
Share on other sites

Oks, thank you so much for help me ^_^

Now, my problem is ... How do I link the record fields to the database?
I search this post but I don't understand very well and I don't know of ot has to do with problem.

 

https://www.prestashop.com/forums/topic/113300-tutorial-add-custom-field-to-customer-registration-how-you-found-us-store-in-db-display-result-in-admin/

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...