o_panasnko Posted June 23, 2013 Share Posted June 23, 2013 When I try to make guest purchase or register, I can't do it - displayed error "Country cannot be loaded with address->id_country". What I must to change. than remove it? Thanks! Link to comment Share on other sites More sharing options...
vputin Posted June 27, 2013 Share Posted June 27, 2013 I have same problem pls help it is very important. Thanks Link to comment Share on other sites More sharing options...
El Patron Posted June 27, 2013 Share Posted June 27, 2013 I have same problem pls help it is very important. Thanks what version of ps are you using? Link to comment Share on other sites More sharing options...
vputin Posted June 30, 2013 Share Posted June 30, 2013 PrestaShop™1.5.4.1 Link to comment Share on other sites More sharing options...
El Patron Posted June 30, 2013 Share Posted June 30, 2013 I would unzip a new ps 1.5.4.1 and obtain file /themes/default/address.tpl and reupload to your remote host to see if the problem goes away. Link to comment Share on other sites More sharing options...
vekia Posted June 30, 2013 Share Posted June 30, 2013 another question: you use prestashop from official installation package or maybe from something like softaculous ? (installator from your webhosting control panel) ? Link to comment Share on other sites More sharing options...
vputin Posted July 1, 2013 Share Posted July 1, 2013 I downloaded prestashop from official site and intall it on my server, and I reupload adresses.tpl but problem dont goes away. Link to comment Share on other sites More sharing options...
El Patron Posted July 1, 2013 Share Posted July 1, 2013 that is very odd... can you post a screen shot from back office-->Advanced Parameters > Configuration Information 1 Link to comment Share on other sites More sharing options...
vputin Posted July 2, 2013 Share Posted July 2, 2013 Informácie o serveri: Linux #1 SMP Thu Aug 23 07:41:30 UTC 2012 x86_64 Verzia softvéru servera: Apache PHP verzia: 5.2.17 Limit pamäte: 48M Max. čas vykonávania.: 30 Informácie o databáze Verzia MySQL: 5.0.92-log Nástroj MySQL: InnoDB Predpona tabuliek: ps_ Informácie o e-shope Verzia PrestaShopu: 1.5.4.1 URL obchodu:: http://test.vsetkopremobil.sk/ Aktuálne používaná téma: empi Konfigurácia mailov Metóda e-mailov: Používate funkciu PHP mail() Vaše informácie Váš internetový prehliadač: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.15 Skontrolujte nastavenia Povinné parametre: OK Voliteľné parametre: Prosím odstráňte nasledujúce chyby: magicquotes Link to comment Share on other sites More sharing options...
El Patron Posted July 2, 2013 Share Posted July 2, 2013 I suspect there is a bug in your theme...but that is only a guess... I did a quick test, it did not even ask for country: http://screencast.com/t/S78yn42dYkiy Try this: change the registration process type to standard and then re-test. http://screencast.com/t/wBypUMs7Nkgw I don't like to suggest it as it could cause problems but if all else fails use the native ps default theme and see if you still experience problems. If you don't after trying default theme then I would contact the theme developer. Also if you have loaded any modules that changes registration, un-install them and try again. good luck! Link to comment Share on other sites More sharing options...
sworld Posted July 29, 2013 Share Posted July 29, 2013 I also have the Same Problem - Registration shows country but when in FO customer want to update the address the error is id_country required Server information Server information: Linux #16 SMP Tue May 14 08:12:20 CDT 2013 x86_64 Server software version: Apache PHP version: 5.2.17 Memory limit: 256M Max execution time: 30 Database information MySQL version: 5.5.23-55 MySQL engine: MyISAM Tables prefix: Store information PrestaShop version: 1.5.4.1 Shop URL: http://stationeryworld.com/ Current theme in use: sworld Mail configuration Mail method: You are using your own SMTP parameters. SMTP server: mail.stationeryworld.com SMTP user: Defined SMTP password: Defined Encryption: off Port: 25 Your information Your web browser: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0 Link to comment Share on other sites More sharing options...
El Patron Posted July 29, 2013 Share Posted July 29, 2013 I also have the Same Problem - Registration shows country but when in FO customer want to update the address the error is id_country required Server information Server information: Linux #16 SMP Tue May 14 08:12:20 CDT 2013 x86_64 Server software version: Apache PHP version: 5.2.17 Memory limit: 256M Max execution time: 30 Database information MySQL version: 5.5.23-55 MySQL engine: MyISAM Tables prefix: Store information PrestaShop version: 1.5.4.1 Shop URL: http://stationeryworld.com/ Current theme in use: sworld Mail configuration Mail method: You are using your own SMTP parameters. SMTP server: mail.stationeryworld.com SMTP user: Defined SMTP password: Defined Encryption: off Port: 25 Your information Your web browser: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0 did you follow up as suggested in previous post? It's best if you add to another's issue that you read any/all suggestions and report back that you did or did not do them. 1 Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 29, 2013 Share Posted July 29, 2013 I also have the Same Problem - Registration shows country but when in FO customer want to update the address the error is id_country required I checked your website and I think this is a problem with the theme. I assume this store was upgraded, is that correct? Do me a favor and try out one thing. In your Admin > Localization > Countries > Edit (concerned country) > Address format. Change the "Country" to "country" save and clear cache. Let me know if that helps. Link to comment Share on other sites More sharing options...
sworld Posted July 30, 2013 Share Posted July 30, 2013 Thanks for checking the website, yes I did 1 click upgrade to 1.5.4 Changed the Country to country, Cleared the cache still the customer cannot update the address and the error message is id_country is required. Link to comment Share on other sites More sharing options...
sworld Posted July 30, 2013 Share Posted July 30, 2013 sorry i did not mentioned the theme was designed online with ps theme maker Link to comment Share on other sites More sharing options...
Delagardi Posted August 8, 2013 Share Posted August 8, 2013 (edited) I have the same problem too. Have you found a solution? My adress format Localization Countries Редактировать is: firstname lastname address1 phone city Edited August 8, 2013 by Delagardi (see edit history) Link to comment Share on other sites More sharing options...
sworld Posted August 8, 2013 Share Posted August 8, 2013 not yet, Hope Benjamin will help us out Link to comment Share on other sites More sharing options...
El Patron Posted August 8, 2013 Share Posted August 8, 2013 I am going to stop following this thread. Why? If you have a 'similar' problem or even 'feel' that it is the same problem, you are best served by opening a new topic. Now we have three/four community members trying to describe 'their' issue...so now only the last reporter gets attention. Please in the future..post a new topic for best community support. Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 8, 2013 Share Posted August 8, 2013 not yet, Hope Benjamin will help us out Hi, make sure to have a backup and go to your themes/(your theme name) folder and find open address.tpl and find <input type="hidden" name="token" value="{$token}" /> Move it under {if $field_name eq 'address1'} <p class="required text"> Link to comment Share on other sites More sharing options...
sworld Posted August 9, 2013 Share Posted August 9, 2013 Benjamin, moved as per your instruction but there was no changes at FO (I have done FORCE COMPILE ON). It does not show country field and there is error when saving address as - id_country is required. I am attaching the address.tpl of my theme in zip format. (I had done 1 click upgrade to pS 1.5.4) address.zip Link to comment Share on other sites More sharing options...
sworld Posted September 3, 2013 Share Posted September 3, 2013 Benjamin did just what you told but sorry it is of no use Link to comment Share on other sites More sharing options...
Maishop Posted October 1, 2013 Share Posted October 1, 2013 Hello! It's possible to continue with this topic or should I open a new one? I have the same problem, when I click on "REGISTER" it gives me: "Country cannot be loaded with address->id_country". Thanks in advance! Marina. Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 hello, have you checked github entry: http://forge.prestashop.com/browse/PSCFV-3890 ? Link to comment Share on other sites More sharing options...
Maishop Posted October 2, 2013 Share Posted October 2, 2013 Hi!Thanks for your quick response vekia! I've tried to find where is that code but I can´t find it. Maybe should I say that my version of PrestaShop is 1.4? Is for that I can't find that code? I had installed 1.5 but the theme I wanted was for 1.4. So sorry for my english, is very bad Thanks again! Link to comment Share on other sites More sharing options...
Guest Posted October 22, 2013 Share Posted October 22, 2013 Hey guys, I can't seem to get this fixed. I'm on 1.5.4 and this issue is pertinent on multishipping on guest checkout for me.. I tried your fix Benjamin..has there been any updates on this? I can see the country selector but it doesn't want to go through. Thanks in advance, eggo Link to comment Share on other sites More sharing options...
sworld Posted October 22, 2013 Share Posted October 22, 2013 I upgraded to 1.5.6 and the above problem solved along with other bugs Link to comment Share on other sites More sharing options...
Guest Posted October 22, 2013 Share Posted October 22, 2013 Hey sworld, Thanks for the response. Not sure upgrading is in the cards right now, going to continue to look for a solution. Will post here with anything I get. eggo Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 22, 2013 Share Posted October 22, 2013 This is the Github fix regarding the one page checkout and country selection. Please take a look at https://github.com/PrestaShop/PrestaShop/commit/06cdeb45a5f760e5c6a2b018163b51e6611055d9 and let me know if these changes work for you. Always make sure to BACKUP before changing files or code. Thank you! Link to comment Share on other sites More sharing options...
Guest Posted October 22, 2013 Share Posted October 22, 2013 Hey Benjamin, Thanks for the help, it is much appreciated!! Unfortunately I tried those before posting, and just tried again. It just removes the the country field and also adds repeat fields.. Is there anything else I could try? Kind of desperate at this point. I'm back to the 5 page checkout at the moment. Link to comment Share on other sites More sharing options...
Guest Posted October 23, 2013 Share Posted October 23, 2013 Hey Benjamin, Do you think a fix is possible for this or would I be better off trying to upgrade to 1.5.6 although I will probably have to do a sandbox test production first. Appreciate the help! eggo Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 23, 2013 Share Posted October 23, 2013 I would test the upgrade first as sandbox. If it fixes the problem and doesn't create new ones you should go ahead and do it. Alternatively, you could post in the Job Offer forum to see what kind of results you get. That is another choice. Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2013 Share Posted October 26, 2013 (edited) Hey Benjamin, Thanks for the advice! I have made a sandbox to do some testing and I have narrowed the problem down to the some modifications I made to the select form for the country. It is weird because it works fine for everything else so it must be the argument is not being passed correctly. This is the original code for the country selector. {elseif $field_name eq "country" || $field_name eq "Country:name"} <p class="required select"> <label for="id_country">{l s='Country'} <sup>*</sup></label> <select name="id_country" id="id_country"> {foreach from=$countries item=v} <option value="{$v.id_country}"{if (isset($guestInformations) AND $guestInformations.id_country == $v.id_country) OR (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> </p> And then for the changes.. {elseif $field_name eq "country" || $field_name eq "Country:name"} <p class="required select"> <div class="form-group"><label for="id_country" class="col-lg-2 col-md-2 col-sm-2 control-label">{l s='Country'} <sup>*</sup></label> <div class="col-lg-10 col-md-10 col-sm-10"><select name="id_country" id="id_country" class="selectpicker"> {foreach from=$countries item=v} <option value="{$v.id_country}"{if (isset($guestInformations) AND $guestInformations.id_country == $v.id_country) OR (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'htmlall':'UTF-8'}</option> {/foreach} </select></div></div> </p> I am using http://silviomoreto.github.io/bootstrap-select/. I'm going to continue into looking why the correct argument isn't being passed on forward..may be a long shot but just looking at that do you have any advice on what I could look at as a potential problem? Thanks! eggo Edited October 26, 2013 by Guest (see edit history) Link to comment Share on other sites More sharing options...
canah Posted November 14, 2013 Share Posted November 14, 2013 I had similar problem except that besides I saw an error, which concerned "id", additionally the field with countries was an empty. So it was a little weird, but I checked that I turned off: "Restrict country selections in Front Office to those covered by active carriers" at Localisation -> Countries. Enabled this option solved my problem. Link to comment Share on other sites More sharing options...
desger99 Posted March 15, 2015 Share Posted March 15, 2015 Hi, I had the same problem before, I just change the configuration of my country and now is fine. In LOCALIZATION/COUNTRIES Edit the one you are using and leave it like this: firstname lastname address1 address2 postcode State:name city phone Country:name People will have to choose the country but it will work. Link to comment Share on other sites More sharing options...
Recommended Posts