cybero Posted April 8, 2014 Share Posted April 8, 2014 (edited) Hello I'm using PrestaShop 1.5.6.1 and would like to make the ZIP code a not mandatory field. Edited April 8, 2014 by cybero (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted April 8, 2014 Share Posted April 8, 2014 I'd need to know if you are using the default 5 page check-out or One Page check out or a third party module. But for exsample with one page checkout, in your theme find order-opc-new-account.tpl. You'll see regular fields use <p class="text"> The requiered fields use <p class="required text"> Basically you just need to remove the word "required" Link to comment Share on other sites More sharing options...
cybero Posted April 8, 2014 Author Share Posted April 8, 2014 (edited) I'd need to know if you are using the default 5 page check-out or One Page check out or a third party module. But for exsample with one page checkout, in your theme find order-opc-new-account.tpl. You'll see regular fields use <p class="text"> The requiered fields use <p class="required text"> Basically you just need to remove the word "required" I'm using one page checkout I would like to do that in a clean way, I want to remove the * as well Edited April 8, 2014 by cybero (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted April 8, 2014 Share Posted April 8, 2014 (edited) Then go ahead. It's there as well. <sup>*</sup> Edited April 8, 2014 by Bill Dalton (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 9, 2014 Share Posted April 9, 2014 its enough to just remove "required" from class param? i think that it's necessary to change also settings of this field in controller :confused: Link to comment Share on other sites More sharing options...
Bill Dalton Posted April 9, 2014 Share Posted April 9, 2014 My understanding is that by changing the class from <p class="required text"> to <p class="text"> avoids the routine on some fields but not all. The telephone required field for example. Link to comment Share on other sites More sharing options...
eduard02 Posted June 30, 2014 Share Posted June 30, 2014 Hi, Not working for me. In BO update NO to Localization > Countries > delete zipcode from the form. How to set Prestashop to ask zipcode, but not required. prestashop 1.5.6.2 Any solution for this? Thank you. 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