locean67 Posted May 23, 2012 Share Posted May 23, 2012 (edited) Good morning everyone, I'm having a hard time trying to modify a .php and .tpl file. I'd like to let the user write his hair color (for exemple) when his signing in (like : "hair color : input type=text"). The fact is that I'm new to prestashop and i don't really know how to do it. I guess I will have to modify AuthController.php and authentication.tpl but I don't really know how. Where can I find the file in order to change the sql request to add a customer? Once I've done it, will I have to change something in the back office as well (in order to see the hair color from my back office) Thank you for reading me and answering me. I hope I made myself clear enough. If I didn't, I apologize. Thank you for your help EDIT : In the authentiation.tpl I added a row to thedlv_all_fields cell : {if !isset($dlv_all_fields} {...... ($dlv_all_fields.9='siret'} } In the form to fill I added : {elseif $field_name eq "siret"} <p class="required text" <label for="siret">{l s='siret'}</label> <input type="text" class="text" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" /> <sup>*</sup> </p> the label and input don't show themsleves though. I guess it is because $dlv_all_fields is already set but I don't know where to look for it.... Edited May 24, 2012 by locean67 (see edit history) 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