Version Notes
fix prefix table issue, reinstall province table http://website/aongkir/index/refresharea
Download this release
Release Info
| Developer | Ansyori |
| Extension | aongkir |
| Version | 1.1.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.0.0 to 1.1.0.1
app/code/local/Ansyori/Aongkir/Helper/Data.php
CHANGED
|
@@ -202,7 +202,7 @@ class Ansyori_Aongkir_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 202 |
$model = Mage::getModel('aongkir/area');
|
| 203 |
|
| 204 |
$sql_delete_region = "
|
| 205 |
-
DELETE FROM "
|
| 206 |
";
|
| 207 |
|
| 208 |
|
|
@@ -222,7 +222,7 @@ class Ansyori_Aongkir_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 222 |
|
| 223 |
|
| 224 |
$sql_insert_province = "
|
| 225 |
-
INSERT INTO directory_country_region (country_id,code,default_name)
|
| 226 |
VALUES ('ID','$code_prov','$name_prov')
|
| 227 |
";
|
| 228 |
|
| 202 |
$model = Mage::getModel('aongkir/area');
|
| 203 |
|
| 204 |
$sql_delete_region = "
|
| 205 |
+
DELETE FROM ".Mage::getConfig()->getTablePrefix()."directory_country_region WHERE country_id = 'ID'
|
| 206 |
";
|
| 207 |
|
| 208 |
|
| 222 |
|
| 223 |
|
| 224 |
$sql_insert_province = "
|
| 225 |
+
INSERT INTO ".Mage::getConfig()->getTablePrefix()."directory_country_region (country_id,code,default_name)
|
| 226 |
VALUES ('ID','$code_prov','$name_prov')
|
| 227 |
";
|
| 228 |
|
app/code/local/Ansyori/Aongkir/Model/Carrier/Ongkir.php
CHANGED
|
@@ -44,7 +44,7 @@ class Ansyori_Aongkir_Model_Carrier_Ongkir
|
|
| 44 |
$string_city = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getCity();
|
| 45 |
|
| 46 |
|
| 47 |
-
$sql = "select * from daftar_alamat where concat(type,' ',city_name) = '$string_city' limit 0,1 ";
|
| 48 |
|
| 49 |
$res = $this->helper()->fetchSql($sql);
|
| 50 |
|
|
@@ -213,4 +213,8 @@ class Ansyori_Aongkir_Model_Carrier_Ongkir
|
|
| 213 |
{
|
| 214 |
return array($this->_code=>$this->getConfigData('name'));
|
| 215 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
}
|
| 44 |
$string_city = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getCity();
|
| 45 |
|
| 46 |
|
| 47 |
+
$sql = "select * from ".Mage::getConfig()->getTablePrefix()."daftar_alamat where concat(type,' ',city_name) = '$string_city' limit 0,1 ";
|
| 48 |
|
| 49 |
$res = $this->helper()->fetchSql($sql);
|
| 50 |
|
| 213 |
{
|
| 214 |
return array($this->_code=>$this->getConfigData('name'));
|
| 215 |
}
|
| 216 |
+
public function isTrackingAvailable()
|
| 217 |
+
{
|
| 218 |
+
return true;
|
| 219 |
+
}
|
| 220 |
}
|
app/code/local/Ansyori/Aongkir/controllers/IndexController.php
CHANGED
|
@@ -14,6 +14,14 @@ class Ansyori_Aongkir_IndexController extends Mage_Core_Controller_Front_Action{
|
|
| 14 |
|
| 15 |
}
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
public function cityAction()
|
| 18 |
{
|
| 19 |
$model = Mage::getModel('aongkir/area');
|
|
@@ -78,4 +86,9 @@ class Ansyori_Aongkir_IndexController extends Mage_Core_Controller_Front_Action{
|
|
| 78 |
|
| 79 |
echo $string."{value: 'Kabupaten Badung', data: '17' },{ value: 'Kabupaten Bangli', data: '32' },{ value: 'Kabupaten Buleleng', data: '94' },{ value: 'Kota Denpasar', data: '114' },{ value: 'Kabupaten Gianyar', data: '128' },{ value: 'Kabupaten Jembrana', data: '161' },{ value: 'Kabupaten Karangasem', data: '170' },{ value: 'Kabupaten Klungkung', data: '197' },{ value: 'Kabupaten Tabanan', data: '447' },";
|
| 80 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
}
|
| 14 |
|
| 15 |
}
|
| 16 |
|
| 17 |
+
public function refreshareaAction()
|
| 18 |
+
{
|
| 19 |
+
echo 'START Reinstall Province City'.'<br>';
|
| 20 |
+
$this->helper()->saveAreaToDb();
|
| 21 |
+
echo 'END Reinstall Province City'.'<br>';
|
| 22 |
+
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
public function cityAction()
|
| 26 |
{
|
| 27 |
$model = Mage::getModel('aongkir/area');
|
| 86 |
|
| 87 |
echo $string."{value: 'Kabupaten Badung', data: '17' },{ value: 'Kabupaten Bangli', data: '32' },{ value: 'Kabupaten Buleleng', data: '94' },{ value: 'Kota Denpasar', data: '114' },{ value: 'Kabupaten Gianyar', data: '128' },{ value: 'Kabupaten Jembrana', data: '161' },{ value: 'Kabupaten Karangasem', data: '170' },{ value: 'Kabupaten Klungkung', data: '197' },{ value: 'Kabupaten Tabanan', data: '447' },";
|
| 88 |
}
|
| 89 |
+
|
| 90 |
+
public function helper($type = 'aongkir')
|
| 91 |
+
{
|
| 92 |
+
return Mage::helper($type);
|
| 93 |
+
}
|
| 94 |
}
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>aongkir</name>
|
| 4 |
-
<version>1.1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>open source</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Indonesian Shippping Carriers</summary>
|
| 10 |
<description>Indonesian Shippping Carriers</description>
|
| 11 |
-
<notes>
|
| 12 |
<authors><author><name>Ansyori</name><user>ansyori</user><email>ansyori@gmail.com</email></author></authors>
|
| 13 |
-
<date>2015-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magelocal"><dir name="Ansyori"><dir name="Aongkir"><dir name="Block"><file name="Index.php" hash="eb68794e0f3220839a02dba0f9f7f105"/></dir><dir name="Helper"><file name="Data.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>aongkir</name>
|
| 4 |
+
<version>1.1.0.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>open source</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Indonesian Shippping Carriers</summary>
|
| 10 |
<description>Indonesian Shippping Carriers</description>
|
| 11 |
+
<notes>fix prefix table issue, reinstall province table http://website/aongkir/index/refresharea</notes>
|
| 12 |
<authors><author><name>Ansyori</name><user>ansyori</user><email>ansyori@gmail.com</email></author></authors>
|
| 13 |
+
<date>2015-06-15</date>
|
| 14 |
+
<time>03:10:49</time>
|
| 15 |
+
<contents><target name="magelocal"><dir name="Ansyori"><dir name="Aongkir"><dir name="Block"><file name="Index.php" hash="eb68794e0f3220839a02dba0f9f7f105"/></dir><dir name="Helper"><file name="Data.php" hash="b68ebefc795034232e4aa7eb4d36e169"/></dir><dir name="Model"><file name="Area.php" hash="a50294a1ead04ef920bd79c457f4bc8a"/><dir name="Carrier"><file name="Ongkir.php" hash="190b9390824a2e98df45c8e8ecca3626"/></dir><file name="Cron.php" hash="df18b4f51639879ce741063dcd34ce23"/><dir name="Mysql4"><dir name="Area"><file name="Collection.php" hash="5a1d6cfd02be80f7038f3cafd27f3ec1"/></dir><file name="Area.php" hash="79392c31d15280d608e47a12bcda6685"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="City.php" hash="db48d237dd037433d142e7bfd4fbe15a"/><file name="Kurir.php" hash="6b42824b026a709f56faa600e6cf1428"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="d58b8cb4d03e8d3ae0492f909c6d5bd4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7524c909e4c0ac821d4e0d41379c04d2"/><file name="config.xml" hash="ad9e0216ad24f345651bb8be9b096d42"/><file name="system.xml" hash="9036decaab9e66c2be1ace814434ccfb"/></dir><dir name="sql"><dir name="aongkir_setup"><file name="mysql4-install-1.0.0.php" hash="4e8ba5ec0e19a30d13bb9568be4605eb"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="aongkir.xml" hash="ec81d1456c144f706915d4daa6fb14d0"/></dir><dir name="template"><dir name="aongkir"><file name="billing.phtml" hash="3ff4e7d9d8043373bae8700e8c14c467"/><file name="edit.phtml" hash="59d5befe7677f4fad38a92f8a4764074"/><file name="shipping.phtml" hash="c18bcbe1da77b90de0a11efa9138e895"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="aongkir.xml" hash="ec81d1456c144f706915d4daa6fb14d0"/></dir><dir name="template"><dir name="aongkir"><file name="billing.phtml" hash="dac284ef3d6a94bd9775f4e1b8510387"/><file name="edit.phtml" hash="59d5befe7677f4fad38a92f8a4764074"/><file name="shipping.phtml" hash="3434b8c160cd22bbe1a45a5cc6689f41"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ansyori_Aongkir.xml" hash="f7f4be17fe16141cff15994c4f202a0f"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
