cipisoft Posted October 26, 2012 Share Posted October 26, 2012 Hi, I am new to prestashop and encountered a problem: - when I try to add a new address I get an error "country ID required" but the country field doesn't exist (not need) - if I try to add in Localizations>Countries field Country:name and save, this field doesn't appear in Address form and in Localizations>Countries line is modified and appear Country? i have prestashop 15.2.0. Thanks. Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted October 28, 2012 Share Posted October 28, 2012 when I try to add a new address I get an error "country ID required" but the country field doesn't exist (not need) There must be a country associated with every address. Country ID is a required field by PrestaShop, it cannot be eliminated. There should be a country field in the form displayed when you add a new address. If not, there is something wrong with your installation. Did you upgrade from an earlier version? if I try to add in Localizations>Countries field Country:name and save, this field doesn't appear in Address form Fields you add/remove there are for invoices etc where an address is displayed, does not reflect which fields will appear in the registration forms. Marty Shue Link to comment Share on other sites More sharing options...
cipisoft Posted October 28, 2012 Author Share Posted October 28, 2012 There must be a country associated with every address. Country ID is a required field by PrestaShop, it cannot be eliminated. There should be a country field in the form displayed when you add a new address. If not, there is something wrong with your installation. Did you upgrade from an earlier version? no is fresh install , I had installed before 1.5.1.0 and same error, so it must be a problem with server config but meets, the requirements Web server: Apache 1.3, Apache 2.x, Nginx or Microsoft IIS PHP 5.1+ installed and enabled MySQL 5.0+ installed with a database created Link to comment Share on other sites More sharing options...
amelkant Posted February 15, 2013 Share Posted February 15, 2013 Hi, im runnig 1.5.3 and had the same errors, Country ID Required, did you find any solution? Link to comment Share on other sites More sharing options...
henn Posted February 20, 2013 Share Posted February 20, 2013 same here i'm using 1.5.2.0 and same error appear.. anyone have solution thanks in advance... Link to comment Share on other sites More sharing options...
TheWayside Posted February 20, 2013 Share Posted February 20, 2013 Same here on 1.4.5 - Also have a problem with old orders and addresses merging with new accounts - very worrying, if anyone can help please message me or post here. Link to comment Share on other sites More sharing options...
Já Posted February 24, 2013 Share Posted February 24, 2013 (edited) I had the same problem. It's generated by value "Country?" in Admin > Localization > Countries > Edit (any country) > Address format. There are two possible solutions (tested in version 1.5.3.1): 1) For each country, change the part of value in the parameter Address format from "Country?" to "country?" (change only the first character to lowercase). 2) Make the change in classes/AddressFormat.php in function getOrderedAddressFields. Find the row: $out[] = trim($word_item); ... and change it to: $out[] = strtolower(trim($word_item)); That's all, enjoy ;-) Edited February 24, 2013 by Já (see edit history) Link to comment Share on other sites More sharing options...
henn Posted February 25, 2013 Share Posted February 25, 2013 Thanks a lot Ja. it's work for me.. Link to comment Share on other sites More sharing options...
joan16v Posted February 26, 2013 Share Posted February 26, 2013 THANKS THANKS THANKS!! worked for me too. Link to comment Share on other sites More sharing options...
RIGHT4SITE Posted February 28, 2013 Share Posted February 28, 2013 (edited) For Prestashop 1.5.3! With the Guest checkout disabled, and process of checkout in single page. I've tryed the method described bellow, but without success, otherwise I've made for me to have country_id and City to be hidden values. Those who want to know how I did it - follow these steps: 1. in "themes/prestashop/css/order-opc.css" add at the bottom this line: #center_column #new_account_form p.hidden {visibility:hidden;} 2. In the "themes/prestashop/order-opc-new-account.tpl" faind and comment out the lines from number 223 to 228 (there is a <select> tag) instead of this, right before the commented <select> strarts, insert new line and write this <input type="hidden" name="id_country" id="id_country" value="147"> of course change 147 to your Country ID, that you can find in admin > Localization > Countries. after that add the class "hidden" to the line #221 made it like this <p class="required select hidden"> 3. Go with this steps for the field "city" and add there in "value" - your city - to be like: value="Ohio". That worked for me, after close to 6 hours of researching in google well, hope you'll find it quite usefull. Edited February 28, 2013 by vally7 (see edit history) Link to comment Share on other sites More sharing options...
sootski Posted April 9, 2013 Share Posted April 9, 2013 I had the same problem as Ja I went to "Country?" in Admin > Localization > Countries > Edit (any country) > Address format. I just needed to change the format and it worked Link to comment Share on other sites More sharing options...
serlica Posted April 10, 2013 Share Posted April 10, 2013 I also fixed it changing Country to country. You saved my life and something else... Link to comment Share on other sites More sharing options...
kotkotan Posted July 17, 2013 Share Posted July 17, 2013 (edited) how to resolve country ID required in 1.5.4.1 ? Edited July 17, 2013 by kotkotan (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts