NuZz Posted February 14, 2010 Share Posted February 14, 2010 I wnat to delete postal code label in registration how i need to do that ? Link to comment Share on other sites More sharing options...
Dharani Posted February 15, 2010 Share Posted February 15, 2010 You have to edit the authentication.tpl file in the theme directory Link to comment Share on other sites More sharing options...
Radu Posted February 17, 2010 Share Posted February 17, 2010 in themes/prestashop/authentication.tpl you need to remove {l s='Postal code / Zip code'} <input type="text" class="text" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" /> * but you also must edit this file themes/prestashop/address.tpl and remove: {l s='Postal code / Zip code'} <input type="text" id="postcode" name="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{else}{$address->postcode|escape:'htmlall':'UTF-8'}{/if}" /> * Link to comment Share on other sites More sharing options...
NuZz Posted February 17, 2010 Author Share Posted February 17, 2010 Thanks postal code label disapear from registration form But new problem opened when i try to registrate writing a error what says i need to write postal code but the label dosen't exist HELP ME ! Link to comment Share on other sites More sharing options...
Radu Posted February 17, 2010 Share Posted February 17, 2010 he he sorry about that....go to classes/Address.phpand remove this piece of code:'postcode' => 'isPostCode', Link to comment Share on other sites More sharing options...
NuZz Posted February 19, 2010 Author Share Posted February 19, 2010 I removed classes/Address.php code: ‘postcode’ => ‘isPostCode’,But the same error is showing Link to comment Share on other sites More sharing options...
NuZz Posted February 19, 2010 Author Share Posted February 19, 2010 I'm did it I just finded all words "postalcode" and deleted in Address.phpThan you for help ! Link to comment Share on other sites More sharing options...
SDT Member Posted July 1, 2011 Share Posted July 1, 2011 There is a simple way to remove postcode field that:#1 Go to Back Office >> Shipping >> Countries #2 Select country to edit#3 Uncheck "Need zip code"#4 In "Address layout", remove postcode. 2 1 Link to comment Share on other sites More sharing options...
annalin Posted December 16, 2011 Share Posted December 16, 2011 Thanks so much for the last reply, that really helped me! Link to comment Share on other sites More sharing options...
aldabu Posted February 8, 2012 Share Posted February 8, 2012 There is a simple way to remove postcode field that: #1 Go to Back Office >> Shipping >> Countries #2 Select country to edit #3 Uncheck "Need zip code" #4 In "Address layout", remove postcode. That is correct, but how would I do with all countries, that would be, very laborious doing with all, is there a way to do it easier? Link to comment Share on other sites More sharing options...
Mohsen6558 Posted February 11, 2012 Share Posted February 11, 2012 UPDATE `ps_country` SET `need_zip_code`='0' Link to comment Share on other sites More sharing options...
ufo973 Posted May 6, 2015 Share Posted May 6, 2015 (edited) UPDATE `ps_country` SET `need_zip_code`='0' What a life saver I was about to make my mind to edit all countries 1 by 1 and then i saw this post...saved my life EDIT: I found a problem with this...it only hides the zip_code in the registration forum...you have to remove the zip code formats also to it to work. UPDATE `ps_country` SET `zip_code_format`='' Edited May 9, 2015 by ufo973 (see edit history) Link to comment Share on other sites More sharing options...
RobbieBlokeToys Posted October 14, 2015 Share Posted October 14, 2015 UPDATE `ps_country` SET `need_zip_code`='0' This removes zip code from the form, but is there a way to make it visible but not required? 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