aongkir - Version 1.3.0.0

Version Notes

new feature : disable servis feature

Download this release

Release Info

Developer Ansyori
Extension aongkir
Version 1.3.0.0
Comparing to
See all releases


Code changes from version 1.2.0.0 to 1.3.0.0

app/code/local/Ansyori/Aongkir/Helper/Data.php CHANGED
@@ -40,6 +40,11 @@ class Ansyori_Aongkir_Helper_Data extends Mage_Core_Helper_Abstract
40
  return $this->config('disablecached');
41
  }
42
 
 
 
 
 
 
43
  public function getSavedRates($origin,$dest,$weight,$kurir)
44
  {
45
 
@@ -48,6 +53,13 @@ class Ansyori_Aongkir_Helper_Data extends Mage_Core_Helper_Abstract
48
  return $this->getRates($origin,$dest,$weight,$kurir);
49
  };
50
 
 
 
 
 
 
 
 
51
  $array_rates = array();
52
  $sql = "SELECT distinct dari,ke, harga, kurir, servis,text FROM aongkir_save_rates
53
  where dari='$origin' and ke='$dest' and kurir='$kurir' ";
@@ -57,11 +69,18 @@ class Ansyori_Aongkir_Helper_Data extends Mage_Core_Helper_Abstract
57
  foreach($sql as $datax)
58
  {
59
  $count++;
 
 
 
 
 
60
  $array_rates[] = array(
61
 
62
  'text'=> $datax['text'].' - ',
63
  'cost'=> $datax['harga'] * $weight
64
  );
 
 
65
  };
66
 
67
  if($count)
@@ -134,6 +153,15 @@ class Ansyori_Aongkir_Helper_Data extends Mage_Core_Helper_Abstract
134
 
135
  public function getRates($origin,$dest,$weight,$kurir)
136
  {
 
 
 
 
 
 
 
 
 
137
  $ori_weight = $weight;
138
  $weight = $weight * 1000;
139
  $post_fields = "origin=$origin&destination=$dest&weight=$weight&courier=$kurir";
@@ -156,11 +184,19 @@ class Ansyori_Aongkir_Helper_Data extends Mage_Core_Helper_Abstract
156
 
157
 
158
  foreach($listrates['cost'] as $main_rates):
159
- $array_rates[] = array(
160
 
161
- 'text'=> $text.' '.$main_rates['note'],
162
- 'cost'=> $main_rates['value']
163
- );
 
 
 
 
 
 
 
 
 
164
  $harga_perkilo = round($main_rates['value']/$ori_weight,0);
165
  $this->saveRate($origin,$dest,$harga_perkilo,$name_kurir,$listrates['service'],$text);
166
  endforeach;
@@ -417,7 +453,12 @@ class Ansyori_Aongkir_Helper_Data extends Mage_Core_Helper_Abstract
417
  `text` text NOT NULL,
418
  PRIMARY KEY (`idx`)
419
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
 
 
420
  ';
 
 
421
  try{
422
  $this->sql($sql);
423
 
40
  return $this->config('disablecached');
41
  }
42
 
43
+ public function getDisabledServices()
44
+ {
45
+ return $this->config('disablesvr');
46
+ }
47
+
48
  public function getSavedRates($origin,$dest,$weight,$kurir)
49
  {
50
 
53
  return $this->getRates($origin,$dest,$weight,$kurir);
54
  };
55
 
56
+
57
+ $disabled_servis = $this->getDisabledServices();
58
+
59
+ $disabled_servis = explode(",",$disabled_servis);
60
+
61
+ $concat_kurir_servis = '';
62
+
63
  $array_rates = array();
64
  $sql = "SELECT distinct dari,ke, harga, kurir, servis,text FROM aongkir_save_rates
65
  where dari='$origin' and ke='$dest' and kurir='$kurir' ";
69
  foreach($sql as $datax)
70
  {
71
  $count++;
72
+
73
+ $concat_kurir_servis = $datax['kurir'].'|'.$datax['servis'];
74
+
75
+
76
+ if(!in_array($concat_kurir_servis,$disabled_servis)):
77
  $array_rates[] = array(
78
 
79
  'text'=> $datax['text'].' - ',
80
  'cost'=> $datax['harga'] * $weight
81
  );
82
+
83
+ endif;
84
  };
85
 
86
  if($count)
153
 
154
  public function getRates($origin,$dest,$weight,$kurir)
155
  {
156
+
157
+ $disabled_servis = $this->getDisabledServices();
158
+
159
+ $disabled_servis = explode(",",$disabled_servis);
160
+
161
+ $concat_kurir_servis = '';
162
+
163
+
164
+
165
  $ori_weight = $weight;
166
  $weight = $weight * 1000;
167
  $post_fields = "origin=$origin&destination=$dest&weight=$weight&courier=$kurir";
184
 
185
 
186
  foreach($listrates['cost'] as $main_rates):
 
187
 
188
+ $concat_kurir_servis = $name_kurir.'|'.$listrates['service'];
189
+
190
+
191
+ if(!in_array($concat_kurir_servis,$disabled_servis)):
192
+ $array_rates[] = array(
193
+
194
+ 'text'=> $text.' '.$main_rates['note'],
195
+ 'cost'=> $main_rates['value']
196
+ );
197
+ endif;
198
+
199
+
200
  $harga_perkilo = round($main_rates['value']/$ori_weight,0);
201
  $this->saveRate($origin,$dest,$harga_perkilo,$name_kurir,$listrates['service'],$text);
202
  endforeach;
453
  `text` text NOT NULL,
454
  PRIMARY KEY (`idx`)
455
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
456
+
457
+
458
+
459
  ';
460
+
461
+
462
  try{
463
  $this->sql($sql);
464
 
app/code/local/Ansyori/Aongkir/Model/Carrier/Ongkir.php CHANGED
@@ -174,6 +174,11 @@ class Ansyori_Aongkir_Model_Carrier_Ongkir
174
  return $this->helper()->config('origin');
175
  }
176
 
 
 
 
 
 
177
  public function getBeratTotal()
178
  {
179
  $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();
174
  return $this->helper()->config('origin');
175
  }
176
 
177
+ public function getDisabledServices()
178
+ {
179
+ return $this->helper()->config('disablesvr');
180
+ }
181
+
182
  public function getBeratTotal()
183
  {
184
  $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();
app/code/local/Ansyori/Aongkir/Model/Cron.php CHANGED
@@ -9,8 +9,5 @@
9
  class Ansyori_Aongkir_Model_Cron{
10
  public function UpdateAlamat(){
11
  //do something
12
- $helper = Mage::helper('aongkir')->grabAllRates(1);
13
- $helper = Mage::helper('aongkir')->saveAreaToDb();
14
-
15
  }
16
  }
9
  class Ansyori_Aongkir_Model_Cron{
10
  public function UpdateAlamat(){
11
  //do something
 
 
 
12
  }
13
  }
app/code/local/Ansyori/Aongkir/Model/System/Config/Source/Serpis.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Indonesia Shipping Carriers
4
+ * @copyright Copyright (c) 2015 Ansyori B.
5
+ * @email ansyori@gmail.com / ansyori@kemanaservices.com
6
+ * @build_date March 2015
7
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
8
+ */
9
+ class Ansyori_Aongkir_Model_System_Config_Source_Serpis
10
+ {
11
+
12
+ /**
13
+ * Options getter
14
+ *
15
+ * @return array
16
+ */
17
+
18
+ public function helper()
19
+ {
20
+ return Mage::helper('aongkir');
21
+ }
22
+
23
+
24
+ public function getSql()
25
+ {
26
+ $sql2 = "
27
+ CREATE TABLE IF NOT EXISTS `aongkir_service_list` (
28
+ `idx` int(11) NOT NULL AUTO_INCREMENT,
29
+ `kurir` varchar(255) DEFAULT NULL,
30
+ `servis` varchar(255) DEFAULT NULL,
31
+ `service_text` varchar(255) DEFAULT NULL,
32
+ PRIMARY KEY (`idx`)
33
+ ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
34
+
35
+ INSERT IGNORE INTO `aongkir_service_list` (`idx`, `kurir`, `servis`, `service_text`) VALUES
36
+ (1, 'JNE', 'CTC', 'JNE (CTC) JNE City Courier'),
37
+ (2, 'JNE', 'CTCOKE', 'JNE (CTCOKE) JNE City Courier'),
38
+ (3, 'JNE', 'CTCYES', 'JNE (CTCYES) JNE City Courier'),
39
+ (4, 'JNE', 'OKE', 'JNE (OKE) Ongkos Kirim Ekonomis'),
40
+ (5, 'JNE', 'PELIK', 'JNE (PELIK) Amplop Pra Bayar PELIKAN'),
41
+ (6, 'JNE', 'REG', 'JNE (REG) Layanan Reguler'),
42
+ (7, 'JNE', 'SPS', 'JNE (SPS) Super Speed'),
43
+ (8, 'JNE', 'YES', 'JNE (YES) Yakin Esok Sampai'),
44
+ (9, 'POS', 'Express Next Day', 'POS (Express Next Day) Express Next Day'),
45
+ (10, 'POS', 'Surat Kilat Khusus', 'POS (Surat Kilat Khusus) Surat Kilat Khusus'),
46
+ (11, 'TIKI', 'ECO', 'TIKI (ECO) Economi Service'),
47
+ (12, 'TIKI', 'HDS', 'TIKI (HDS) Holiday Delivery Service'),
48
+ (13, 'TIKI', 'ONS', 'TIKI (ONS) Over Night Service'),
49
+ (14, 'TIKI', 'REG', 'TIKI (REG) Regular Service'),
50
+ (15, 'TIKI', 'SDS', 'TIKI (SDS) Same Day Service'),
51
+ (16, 'TIKI', 'TDS', 'TIKI (TDS) Two Day Service');
52
+
53
+ ";
54
+
55
+ try{
56
+ $resource = Mage::getSingleton('core/resource');
57
+ $writeConnection = $resource->getConnection('core_write');
58
+ $writeConnection->query($sql2);
59
+
60
+ }catch(Exception $xx)
61
+ {
62
+ $this->setLog('Erorr Sql : '.$xx->getMessage());
63
+ return false;
64
+ }
65
+ }
66
+
67
+ public function toOptionArray()
68
+ {
69
+ $this->getSql();
70
+ $data = '';
71
+ $arrs_serpis = array();
72
+ $sql = 'select distinct * from `aongkir_service_list` ';
73
+ $resource = Mage::getSingleton('core/resource');
74
+ $writeConnection = $resource->getConnection('core_read');
75
+ $data = $writeConnection->fetchAll($sql);
76
+
77
+ foreach($data as $serpis)
78
+ {
79
+ $arrs_serpis[] = array(
80
+
81
+ 'value' => $serpis['kurir'].'|'.$serpis['servis'],
82
+ 'label'=> $serpis['service_text']
83
+ );
84
+ }
85
+
86
+ return $arrs_serpis;
87
+
88
+ }
89
+
90
+ public function xtoOptionArray()
91
+ {
92
+
93
+
94
+ $this->getSql();
95
+
96
+ if($this->helper()->getApiKey()):
97
+
98
+ //$this->helper()->saveAreaToDb();
99
+
100
+ $city_array = array();
101
+ $city_list = Mage::getModel('aongkir/area')->getCollection()->setOrder('province','ASC');
102
+
103
+ $count = Mage::getModel('aongkir/area')->getCollection()->count();
104
+
105
+ if(!$count)
106
+ {
107
+ $this->helper()->saveAreaToDb();
108
+ }
109
+
110
+ $city_array[] = array('value' => '', 'label'=> '--- Select Origin ('.$count.' Cities Registered) ---' );
111
+ foreach($city_list->getData() as $data)
112
+ {
113
+ $city_id = $data['city_id'];
114
+ $city_name = "Provinsi ".$data["province"]." ".$data["type"]." ".$data["city_name"]." Kodepos ".$data["postal_code"];
115
+ $city_array[] = array('value' => $city_id, 'label'=> $city_name );
116
+
117
+ }
118
+
119
+ //asort($city_array,);
120
+ //uasort($city_array, 'cmp');
121
+ return $city_array;
122
+
123
+
124
+ else:
125
+ return array(
126
+
127
+ array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('API KEY INVALID')),
128
+
129
+ );
130
+ endif;
131
+ }
132
+
133
+ }
app/code/local/Ansyori/Aongkir/controllers/IndexController.php CHANGED
@@ -91,9 +91,4 @@ class Ansyori_Aongkir_IndexController extends Mage_Core_Controller_Front_Action{
91
  {
92
  return Mage::helper($type);
93
  }
94
-
95
- public function refreshratesAction()
96
- {
97
- $this->helper()->grabAllRates();
98
- }
99
  }
91
  {
92
  return Mage::helper($type);
93
  }
 
 
 
 
 
94
  }
app/code/local/Ansyori/Aongkir/etc/system.xml CHANGED
@@ -157,6 +157,17 @@
157
  <comment>Select Courires</comment>
158
  </kurir>
159
 
 
 
 
 
 
 
 
 
 
 
 
160
  <jquery translate="label">
161
  <label>Include jQuery Lib</label>
162
  <frontend_type>select</frontend_type>
157
  <comment>Select Courires</comment>
158
  </kurir>
159
 
160
+ <disablesvr translate="label">
161
+ <label>Disable Service</label>
162
+ <frontend_type>multiselect</frontend_type>
163
+ <source_model>Ansyori_Aongkir_Model_System_Config_Source_Serpis</source_model>
164
+ <sort_order>5</sort_order>
165
+ <show_in_default>1</show_in_default>
166
+ <show_in_website>1</show_in_website>
167
+ <show_in_store>1</show_in_store>
168
+ <comment>Select shipping service you want to disable</comment>
169
+ </disablesvr>
170
+
171
  <jquery translate="label">
172
  <label>Include jQuery Lib</label>
173
  <frontend_type>select</frontend_type>
app/design/frontend/base/default/template/aongkir/billing.phtml CHANGED
@@ -75,7 +75,7 @@ $penolong = Mage::helper('aongkir');
75
  <div class="field">
76
  <label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
77
  <div class="input-box">
78
- <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
79
  </div>
80
  </div>
81
  <div class="field">
@@ -116,13 +116,13 @@ $penolong = Mage::helper('aongkir');
116
  <div class="field">
117
  <label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
118
  <div class="input-box">
119
- <input type="tel" name="billing[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="billing:telephone" />
120
  </div>
121
  </div>
122
  <div class="field">
123
  <label for="billing:fax"><?php echo $this->__('Fax') ?></label>
124
  <div class="input-box">
125
- <input type="tel" name="billing[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="billing:fax" />
126
  </div>
127
  </div>
128
  </li>
75
  <div class="field">
76
  <label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
77
  <div class="input-box">
78
+ <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-number <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
79
  </div>
80
  </div>
81
  <div class="field">
116
  <div class="field">
117
  <label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
118
  <div class="input-box">
119
+ <input type="tel" name="billing[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="validate-number input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="billing:telephone" />
120
  </div>
121
  </div>
122
  <div class="field">
123
  <label for="billing:fax"><?php echo $this->__('Fax') ?></label>
124
  <div class="input-box">
125
+ <input type="tel" name="billing[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="validate-number input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="billing:fax" />
126
  </div>
127
  </div>
128
  </li>
app/design/frontend/base/default/template/aongkir/edit.phtml CHANGED
@@ -39,13 +39,13 @@ $penolong = Mage::helper('aongkir');
39
  <div class="field">
40
  <label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
41
  <div class="input-box">
42
- <input type="tel" name="telephone" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="telephone" />
43
  </div>
44
  </div>
45
  <div class="field">
46
  <label for="fax"><?php echo $this->__('Fax') ?></label>
47
  <div class="input-box">
48
- <input type="tel" name="fax" id="fax" title="<?php echo $this->__('Fax') ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" />
49
  </div>
50
  </div>
51
  </li>
@@ -83,7 +83,7 @@ $penolong = Mage::helper('aongkir');
83
  <div class="field">
84
  <label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
85
  <div class="input-box">
86
- <input type="text" name="postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
87
  </div>
88
  </div>
89
  <div class="field">
39
  <div class="field">
40
  <label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
41
  <div class="input-box">
42
+ <input type="tel" name="telephone" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="validate-number input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="telephone" />
43
  </div>
44
  </div>
45
  <div class="field">
46
  <label for="fax"><?php echo $this->__('Fax') ?></label>
47
  <div class="input-box">
48
+ <input type="tel" name="fax" id="fax" title="<?php echo $this->__('Fax') ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" class="validate-number input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" />
49
  </div>
50
  </div>
51
  </li>
83
  <div class="field">
84
  <label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
85
  <div class="input-box">
86
+ <input type="text" name="postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="validate-number input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
87
  </div>
88
  </div>
89
  <div class="field">
app/design/frontend/base/default/template/aongkir/shipping.phtml CHANGED
@@ -65,7 +65,7 @@ $penolong = Mage::helper('aongkir');
65
  <div class="field">
66
  <label for="shipping:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
67
  <div class="input-box">
68
- <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" onchange="shipping.setSameAsBilling(false);" />
69
  </div>
70
  </div>
71
  <div class="field">
@@ -105,13 +105,13 @@ $penolong = Mage::helper('aongkir');
105
  <div class="field">
106
  <label for="shipping:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
107
  <div class="input-box">
108
- <input type="tel" name="shipping[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" />
109
  </div>
110
  </div>
111
  <div class="field">
112
  <label for="shipping:fax"><?php echo $this->__('Fax') ?></label>
113
  <div class="input-box">
114
- <input type="tel" name="shipping[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" />
115
  </div>
116
  </div>
117
  </li>
65
  <div class="field">
66
  <label for="shipping:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
67
  <div class="input-box">
68
+ <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-number <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" onchange="shipping.setSameAsBilling(false);" />
69
  </div>
70
  </div>
71
  <div class="field">
105
  <div class="field">
106
  <label for="shipping:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
107
  <div class="input-box">
108
+ <input type="tel" name="shipping[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text validate-number <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" />
109
  </div>
110
  </div>
111
  <div class="field">
112
  <label for="shipping:fax"><?php echo $this->__('Fax') ?></label>
113
  <div class="input-box">
114
+ <input type="tel" name="shipping[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="validate-number input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" />
115
  </div>
116
  </div>
117
  </li>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>aongkir</name>
4
- <version>1.2.0.0</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>new feature : cached shipping rates for faster calculate rates</notes>
12
  <authors><author><name>Ansyori</name><user>ansyori</user><email>ansyori@gmail.com</email></author></authors>
13
- <date>2015-08-06</date>
14
- <time>03:14:09</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="dfa0ef6afd679b48be587fe7e976299c"/></dir><dir name="Model"><file name="Area.php" hash="a50294a1ead04ef920bd79c457f4bc8a"/><dir name="Carrier"><file name="Ongkir.php" hash="b21ff335715653c4d52aaa75d3d4a47b"/></dir><file name="Cron.php" hash="e9201b850d3593cb04119ae1bc6fd4c5"/><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="3d98973319858c0bd9dc6e4bb4b01638"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7524c909e4c0ac821d4e0d41379c04d2"/><file name="config.xml" hash="ad9e0216ad24f345651bb8be9b096d42"/><file name="system.xml" hash="0b0f30f2368136be63293917d7079070"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>aongkir</name>
4
+ <version>1.3.0.0</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>new feature : disable servis feature</notes>
12
  <authors><author><name>Ansyori</name><user>ansyori</user><email>ansyori@gmail.com</email></author></authors>
13
+ <date>2015-10-13</date>
14
+ <time>08:59:52</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="59e5ec1f4dc99d7b8613b9854fdd10cf"/></dir><dir name="Model"><file name="Area.php" hash="a50294a1ead04ef920bd79c457f4bc8a"/><dir name="Carrier"><file name="Ongkir.php" hash="55938228f0193eae321ccaea22541313"/></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"/><file name="Serpis.php" hash="34838668f9eea4f206b768257bbba956"/></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="aa024da1af2a92c15557af286b5806f0"/></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="c162f410172cedc42aa35b9eeb99e2da"/><file name="edit.phtml" hash="13ed8bbb0dbe30db9ebd86e6bc6c814b"/><file name="shipping.phtml" hash="75cd4a5fe100a0bdd50a6d97aae0a02f"/></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>