Add 2 New Country in Country List
Permalink 1 user found helpful
Hello
I'm using E-commerce & Zone Base Shipping add-on for one of my clients project. My client asked me to add 2 new countries ("Isle of Man", "Channel Islands") in the country list of shipping. I was trying to do this by copying the countries.php from /concrete/core/helpers/lists/ and put it into the root helpers folder. My current path is root/helpers/lists/countries.php, but it shows some error. The error is below:
Then I remove the lists folder and rename the countries.php to lists_countries.php
Though it remove the error but still it doesn't solve my requirement. I've added 2 new countries in that page but it doesn't show on the Billing/Shipping page.
Please help me.
I'm using E-commerce & Zone Base Shipping add-on for one of my clients project. My client asked me to add 2 new countries ("Isle of Man", "Channel Islands") in the country list of shipping. I was trying to do this by copying the countries.php from /concrete/core/helpers/lists/ and put it into the root helpers folder. My current path is root/helpers/lists/countries.php, but it shows some error. The error is below:
Warning: require_once(C:\wamp\www\project_folder\concrete\helpers\lists_countries.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\project_folder\concrete\core\libraries\loader.php on line 279
Then I remove the lists folder and rename the countries.php to lists_countries.php
Though it remove the error but still it doesn't solve my requirement. I've added 2 new countries in that page but it doesn't show on the Billing/Shipping page.
Please help me.
You can add countries by following the below steps:
Explore to \root\concrete\libraries\3rdparty\Zend\Locale\Data and open the xml file called en.xml and find the tag
Then add countries below that tag like
Here the Short Code stands for Country Short Code..
Explore to \root\concrete\libraries\3rdparty\Zend\Locale\Data and open the xml file called en.xml and find the tag
<territories>
Then add countries below that tag like
<territory type="Short Code">Country Name</territory>
Here the Short Code stands for Country Short Code..
Within these copied files:
Pre c5.6, you need to rename the class to prefix with 'Site' (leaving the file name alone).
For c5.6+, you need to turn off and clear the overrides cache, then turn it back on.
I currently have an addon in the PRB for editing & managing the countries list and states/provinces list. So rather than put up with having to manually edit the files, you (or your client) can maintain the lists via the dashboard.
http://www.concrete5.org/marketplace/addons/country-state-manager/...