Mrgold54 Posted September 12, 2014 Share Posted September 12, 2014 Greetings, I have a little problem (I think) and I can't fix. When I'm trying to add an adress this message appears There is 1 error 1. city is invalid. And I have entered a valid city field. Any one can help me plz Thank you. Link to comment Share on other sites More sharing options...
NemoPS Posted September 13, 2014 Share Posted September 13, 2014 Can you share the site's url? Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2014 Share Posted September 13, 2014 lol? it's just invalid, when you use some datas with invalid things, it will spawn error like that Link to comment Share on other sites More sharing options...
Klausandre Posted September 23, 2014 Share Posted September 23, 2014 I have a similar problem but not the same one. When I add an adress, there is a message like this: 1 error: city is necesary The problem is that the city field doesn`t appear in the application form!! I changed the adress format in the DB and tried to set in order that the city field apears, but I couldn´t fix it. The adress format is: firstname lastname company vat_number address1 address2 city Country:name Sate:name phone Can anyone help me please??! Link to comment Share on other sites More sharing options...
NemoPS Posted September 24, 2014 Share Posted September 24, 2014 Prestashop version? Link to comment Share on other sites More sharing options...
Klausandre Posted October 6, 2014 Share Posted October 6, 2014 Prestashop version? Hi Nemo1, PS 1.5.6.0 regards! Link to comment Share on other sites More sharing options...
NemoPS Posted October 8, 2014 Share Posted October 8, 2014 Are you using the default template? CHeck that you have the following in address.tpl {if $field_name eq 'city'} <div class="required form-group"> <label for="city">{l s='City'} <sup>*</sup></label> <input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city|escape:'html':'UTF-8'}{/if}{/if}" maxlength="64" /> </div> {* if customer hasn't update his layout address, country has to be verified but it's deprecated *} {/if} Link to comment Share on other sites More sharing options...
Klausandre Posted October 12, 2014 Share Posted October 12, 2014 Are you using the default template? CHeck that you have the following in address.tpl {if $field_name eq 'city'} <div class="required form-group"> <label for="city">{l s='City'} <sup>*</sup></label> <input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city|escape:'html':'UTF-8'}{/if}{/if}" maxlength="64" /> </div> {* if customer hasn't update his layout address, country has to be verified but it's deprecated *} {/if} I´m not using default template, I use Biocosmetic Theme. A developer´s support agent that create this template, told me that is the same problem with default theme. This is how its looks the code in adress.tpl : </p> {/if} {if $field_name eq 'city'} <p class="required text"> <label for="city">{l s='City'}<sup>*</sup></label> <input type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city}{/if}{/if}" maxlength="64" /> </p> {* if customer hasn't update his layout address, country has to be verified but it's deprecated *} Link to comment Share on other sites More sharing options...
NemoPS Posted October 13, 2014 Share Posted October 13, 2014 Dd you actually test on your own with the default theme? It would be great to see the live site anyway might be easier to understand the issue Link to comment Share on other sites More sharing options...
Klausandre Posted October 14, 2014 Share Posted October 14, 2014 Dd you actually test on your own with the default theme? It would be great to see the live site anyway might be easier to understand the issue Hi Nemo, thank for your help! I tested the default template and the issue persists. The piece of code in default´s adress.tpl is: {/if} {if $field_name eq 'city'} <p class="required text"> <label for="city">{l s='City'} <sup>*</sup></label> <input type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city|escape:'html'}{/if}{/if}" maxlength="64" /> </p> {* if customer hasn't update his layout address, country has to be verified but it's deprecated *} Actually we have a test site (subdomain) : www.germinia.cl/dev2/index.php I can give you user and pass if you want to see BO. Tks again!! Link to comment Share on other sites More sharing options...
NemoPS Posted October 15, 2014 Share Posted October 15, 2014 I tried checking out but there are no countries at all Link to comment Share on other sites More sharing options...
Klausandre Posted November 3, 2014 Share Posted November 3, 2014 Solved!! Thanks Nemo for your help! It was an absurd thing!! The field box apears under the name on the next line and this was a little confused because it looks like there is not box...it´s just a problem on some .css file ! Link to comment Share on other sites More sharing options...
dedyssss Posted May 19, 2016 Share Posted May 19, 2016 I had the same problem with the above , how well pa ,,,,, I fix in css file Which should I fix Link to comment Share on other sites More sharing options...
Recommended Posts