ecuc Posted September 14, 2016 Share Posted September 14, 2016 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 More sharing options...
rocky Posted September 15, 2016 Share Posted September 15, 2016 The {$smarty.post} variables are there so the posted data isn't lost if an error message is displayed. It's the name="firstname" part of the code that you should look at to see what variable will be created. Link to comment Share on other sites More sharing options...
ecuc Posted September 15, 2016 Author Share Posted September 15, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now