Jump to content

[SOLVED] Need to delete postal code


NuZz

Recommended Posts

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

  • 1 year later...
  • 5 months later...
  • 1 month later...

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

  • 3 years later...

UPDATE `ps_country` SET `need_zip_code`='0'

 

What a life saver  :D 

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 by ufo973 (see edit history)
Link to comment
Share on other sites

  • 5 months later...

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