minhkhoa Posted December 7, 2011 Share Posted December 7, 2011 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 More sharing options...
gonandriy Posted December 7, 2011 Share Posted December 7, 2011 Why it didn't work? Do you receive a messages about needing required fields? Or what happened? Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 7, 2011 Share Posted December 7, 2011 Hello! It isn't enough to remove fields from a tpl file. The processing script(s) might need those fields you removed, to process the sign up. Therefore you will need to modify PHP scripts too. Link to comment Share on other sites More sharing options...
gonandriy Posted December 7, 2011 Share Posted December 7, 2011 yes, CartExpert.net you are right. But first we need know what's exactly happened for point where PHP script should be modified. Link to comment Share on other sites More sharing options...
minhkhoa Posted December 7, 2011 Author Share Posted December 7, 2011 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 More sharing options...
minhkhoa Posted December 8, 2011 Author Share Posted December 8, 2011 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 More sharing options...
minhkhoa Posted December 11, 2011 Author Share Posted December 11, 2011 i find out "function fetch' in smaty.class, but i can't understand how it works. pls help me Link to comment Share on other sites More sharing options...
Nikpro Posted December 28, 2011 Share Posted December 28, 2011 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 =================== 2 Link to comment Share on other sites More sharing options...
gonandriy Posted December 28, 2011 Share Posted December 28, 2011 NIKS, What version of prestashop do you use? Link to comment Share on other sites More sharing options...
minhkhoa Posted December 29, 2011 Author Share Posted December 29, 2011 Hi friends, I solved that, thanks for your help ! Link to comment Share on other sites More sharing options...
Nikpro Posted January 13, 2012 Share Posted January 13, 2012 NIKS, What version of prestashop do you use? 1.4.6.2 Prestashop Hi friends, I solved that, thanks for your help ! How ?????????? Link to comment Share on other sites More sharing options...
Edmund Posted July 26, 2012 Share Posted July 26, 2012 Please share your efforts with us. Link to comment Share on other sites More sharing options...
daztheblue Posted July 27, 2012 Share Posted July 27, 2012 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 More sharing options...
bjp Posted August 9, 2012 Share Posted August 9, 2012 (edited) 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 August 9, 2012 by bjp (see edit history) Link to comment Share on other sites More sharing options...
arimasco Posted August 10, 2012 Share Posted August 10, 2012 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 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