Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Country dropdown menu on billing address checkout page does not populate after upgrade
 
iPhony
Member
 
Avatar
Total Posts:  37
Joined:  2007-09-01
 

After pear failed to upgrade my magento I had to upgrade it manually by overwriting my magento folder with the newest version using svn. Everything went well including the database upgrade. However when testing the order checkout I realized that on the billing address form, the country drop down menu just does not populate.

Any idea what went wrong and more importantly I would really appreciate a hint on how to fix this.

I look forward to hearing from you guys.
Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andrea, Argentina
Sr. Member
 
Total Posts:  164
Joined:  2007-12-05
Buenos Aires, Argentina
 

In my checkout process the dropdown menu does not show any country, then I cant continue trying the checkout process :(

What could be the problem?

(my demo page http://www.vinosyplaceres.com/magento)

Thanks
Andrea

 
Magento Community Magento Community
Magento Community
Magento Community
 
batrick
Jr. Member
 
Total Posts:  1
Joined:  2008-01-26
 

This is a bug in app/code/core/Mage/Directory/Model/Mysql4/Country/Collection.php.
The filters set in the loadByStore method around line 45 are broken. Change the code to

/* if (!empty($allowCountries)) {
$this->addFieldToFilter("country.country_id", array(’in’=>$allowCountries));
}
*/
$this->addCountryCodeFilter(array("DEU”,"AND"));

this allows shipping/billing to Germany and Andorra, for example.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top