yrangana Posted August 14, 2011 Share Posted August 14, 2011 I'm using prestashop 1.4.3. I need to make Zip/ Postal Code is a optional field. Anyone know how can I do it ? Thanks in advance...! Link to comment Share on other sites More sharing options...
publicsb Posted August 25, 2011 Share Posted August 25, 2011 How did you do this ? using 1.4.4 Link to comment Share on other sites More sharing options...
cammo Posted August 26, 2011 Share Posted August 26, 2011 Can you simply remove the "required" class from the relevant tpl files? eg. order-opc-new-account.tpl So this: <p class="required postcode text"> <label for="postcode">{l s='Zip / Postal code'}</label> <input type="text" class="text" name="postcode" id="postcode" value="{if isset($guestInformations) && $guestInformations.postcode}{$guestInformations.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" /> <sup>*</sup> </p> to this: <p class="postcode text"> <label for="postcode">{l s='Zip / Postal code'}</label> <input type="text" class="text" name="postcode" id="postcode" value="{if isset($guestInformations) && $guestInformations.postcode}{$guestInformations.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" /> </p> Link to comment Share on other sites More sharing options...
RobbieBlokeToys Posted October 14, 2015 Share Posted October 14, 2015 Nope, didn't work. I can't find anything to get rid of this postcode error, and even just making it visible but not required isn't working. I can't believe this problem still exists after four years and no one seems to be working on it. Link to comment Share on other sites More sharing options...
ELEGANTAL Posted February 28, 2016 Share Posted February 28, 2016 It is now possible on version 1.6.* You can make zip code optional for each country. To do that, go to Countries page on back office and edit particular country that you want to disable Zip Code. And choose "No" for Does it need Zip/postal code? option You can control all or 'some' countries by running SQL on database. The following query will disable zip code on all countries: UPDATE `ps_country` SET need_zip_code = 0 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