Active
Project:
Addresses
Version:
6.x-1.12
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2011 at 11:02 UTC
Updated:
2 May 2012 at 07:49 UTC
How can I add a new country in country dropdown box wich is rendering from address module?
This is very urgent, can someone help me out from here
Comments
Comment #1
AlexisWilke commentedThe definition of a country is below the following folder:
addresses/countries/
I suggest you copy an existing country to yours and edit the name, address, etc. directly in there.
You cannot add a new country using the interface.
Thank you.
Alexis Wilke
P.S. We'll appreciate a copy of you addition! 8-)
Comment #2
Praveen Sharma commentedGo to the addresses.inc file in addresses module under _addresses_country_get function and add country key and country name. eg.
After adding this go to _addresses_country_get_code3 function and add yourcountrycode key and ISO name eg.
After making these changes in addresses.inc file create one file "yourcountrykey.inc" in countries directory. You can mention the list of states under addresses_province_list_yourcountrykey function eg.
In "yourcountrykey.inc" file