Version Notes
Moduleversion 1.0.0 allows you manage regions for any country on magento so that it will drop down list in the address fields.
Download this release
Release Info
Developer | Mohammed Meabed |
Extension | regions_manager |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/community/Web/States/controllers/Adminhtml/StatesController.php
CHANGED
@@ -143,7 +143,7 @@ class Web_States_Adminhtml_StatesController extends Mage_Adminhtml_Controller_Ac
|
|
143 |
$resource = Mage::getSingleton('core/resource');
|
144 |
$write = $resource->getConnection('core_write');
|
145 |
$regionName = $resource->getTableName('directory/country_region_name');
|
146 |
-
$write->delete($regionName, array('region_id =' . $editorId));
|
147 |
|
148 |
if ($value) {
|
149 |
$write->insert($regionName, array('region_id' => $editorId, 'locale' => $locale, 'name' => trim($value)));
|
143 |
$resource = Mage::getSingleton('core/resource');
|
144 |
$write = $resource->getConnection('core_write');
|
145 |
$regionName = $resource->getTableName('directory/country_region_name');
|
146 |
+
$write->delete($regionName, array('region_id =' . $editorId,'locale = "' . $locale.'"'));
|
147 |
|
148 |
if ($value) {
|
149 |
$write->insert($regionName, array('region_id' => $editorId, 'locale' => $locale, 'name' => trim($value)));
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>regions_manager</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/lgpl.html">LGPL</license>
|
7 |
<channel>community</channel>
|
@@ -11,8 +11,8 @@
|
|
11 |
<notes>Moduleversion 1.0.0 allows you manage regions for any country on magento so that it will drop down list in the address fields.</notes>
|
12 |
<authors><author><name>Mohammed Meabed</name><user>meabed</user><email>mo.meabed@gmail.com</email></author></authors>
|
13 |
<date>2013-07-18</date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Web_States.xml" hash="f3bb54abd76c0d70a29c8377bd6d5410"/></dir></target><target name="magecommunity"><dir name="Web"><dir name="States"><dir name="Block"><dir name="Adminhtml"><dir name="Renderer"><file name="Name.php" hash="4eb5be33722df5922617e70f8d33cdda"/></dir><dir name="States"><dir name="Edit"><file name="Form.php" hash="6b659d1c5c7e7026af78ca39c78115b8"/><dir name="Tab"><file name="Form.php" hash="69c6dc43ea76238d1f5674677ff9b3e9"/></dir><file name="Tabs.php" hash="901859a748339b12f64e73b1d79ba8fc"/></dir><file name="Edit.php" hash="8f58d5d8dccabc59792355b2a6239e46"/><file name="Grid.php" hash="3bc6366734eef5ad1248ed4fdb6a7f2f"/></dir><file name="States.php" hash="d0a3644fb912e22021e98d88b8f7a6c9"/></dir></dir><dir name="Helper"><file name="Data.php" hash="db4734248cb15b57e2120d929f1fe814"/></dir><dir name="Model"><dir name="Mysql4"><dir name="States"><file name="Collection.php" hash="e37f39858e22304c7542362456c7553d"/></dir><file name="States.php" hash="ab904a71af6297ebbd3007a454ffeb7c"/></dir><dir name="Resource"><dir name="States"><file name="Collection.php" hash="b2d5ed5740a2ff530b9ce8ede55c27c4"/></dir><file name="States.php" hash="834be4c3985af02f3e80f7fd1409c2c7"/></dir><file name="States.php" hash="2e6a923ed8caa6c007a9efd7ccdb6910"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StatesController.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.1</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>regions_manager</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/lgpl.html">LGPL</license>
|
7 |
<channel>community</channel>
|
11 |
<notes>Moduleversion 1.0.0 allows you manage regions for any country on magento so that it will drop down list in the address fields.</notes>
|
12 |
<authors><author><name>Mohammed Meabed</name><user>meabed</user><email>mo.meabed@gmail.com</email></author></authors>
|
13 |
<date>2013-07-18</date>
|
14 |
+
<time>21:15:57</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Web_States.xml" hash="f3bb54abd76c0d70a29c8377bd6d5410"/></dir></target><target name="magecommunity"><dir name="Web"><dir name="States"><dir name="Block"><dir name="Adminhtml"><dir name="Renderer"><file name="Name.php" hash="4eb5be33722df5922617e70f8d33cdda"/></dir><dir name="States"><dir name="Edit"><file name="Form.php" hash="6b659d1c5c7e7026af78ca39c78115b8"/><dir name="Tab"><file name="Form.php" hash="69c6dc43ea76238d1f5674677ff9b3e9"/></dir><file name="Tabs.php" hash="901859a748339b12f64e73b1d79ba8fc"/></dir><file name="Edit.php" hash="8f58d5d8dccabc59792355b2a6239e46"/><file name="Grid.php" hash="3bc6366734eef5ad1248ed4fdb6a7f2f"/></dir><file name="States.php" hash="d0a3644fb912e22021e98d88b8f7a6c9"/></dir></dir><dir name="Helper"><file name="Data.php" hash="db4734248cb15b57e2120d929f1fe814"/></dir><dir name="Model"><dir name="Mysql4"><dir name="States"><file name="Collection.php" hash="e37f39858e22304c7542362456c7553d"/></dir><file name="States.php" hash="ab904a71af6297ebbd3007a454ffeb7c"/></dir><dir name="Resource"><dir name="States"><file name="Collection.php" hash="b2d5ed5740a2ff530b9ce8ede55c27c4"/></dir><file name="States.php" hash="834be4c3985af02f3e80f7fd1409c2c7"/></dir><file name="States.php" hash="2e6a923ed8caa6c007a9efd7ccdb6910"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StatesController.php" hash="4cf8e80f3c568e9784ad73d26cddc818"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="51901fff643b14f3ed1f0b3755c1e2fa"/><file name="config.xml" hash="9d6a49df7bd60726a32df8b9cedbbf99"/></dir><dir name="sql"><dir name="web_states_setup"><file name="mysql4-install-0.1.0.php" hash="431bbe763c9cf423f830346f16066145"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="web_states.xml" hash="95c276d5deea765290636009441f6eb8"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.1</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|