aftership - Version 0.1.10

Version Notes

Fixed minor bugs

Download this release

Release Info

Developer aftership
Extension aftership
Version 0.1.10
Comparing to
See all releases


Code changes from version 0.1.9 to 0.1.10

app/code/community/Aftership/Track/Model/Observer.php CHANGED
@@ -151,25 +151,25 @@ class Aftership_Track_Model_Observer
151
  $response = curl_exec($ch);
152
  $error = curl_error($ch);
153
  curl_close($ch);
154
- $response_obj = json_decode($response);
155
 
156
- if (!property_exists($response_obj, "twitter_screen_name"))
157
  {
158
  Mage::getModel('core/config')->saveConfig('aftership_options/messages/status', 0);
159
- if ($error)
 
160
  {
161
- Mage::throwException(Mage::helper('adminhtml')->__($error));
162
  }
163
- else if (property_exists($response_obj, "error"))
164
  {
165
- Mage::throwException(Mage::helper('adminhtml')->__($response_obj->error));
166
  }
167
  else
168
  {
169
  Mage::throwException(Mage::helper('adminhtml')->__("Connection error, please try again later."));
170
  }
171
- } else {
172
- // success
173
  }
174
  }
175
  }
151
  $response = curl_exec($ch);
152
  $error = curl_error($ch);
153
  curl_close($ch);
154
+ $response_obj = json_decode($response, true);
155
 
156
+ if (!isset($response_obj["user_id"])) //error
157
  {
158
  Mage::getModel('core/config')->saveConfig('aftership_options/messages/status', 0);
159
+
160
+ if (isset($response_obj["error"]))
161
  {
162
+ Mage::throwException(Mage::helper('adminhtml')->__($response_obj["error"]));
163
  }
164
+ else if ($error)
165
  {
166
+ Mage::throwException(Mage::helper('adminhtml')->__($error));
167
  }
168
  else
169
  {
170
  Mage::throwException(Mage::helper('adminhtml')->__("Connection error, please try again later."));
171
  }
172
+
 
173
  }
174
  }
175
  }
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>aftership</name>
4
- <version>0.1.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Users can simply link their online stores to Aftership and view all packages in one place. Online stores can also automatically inform their customers of the latest delivery status through SMS, email and Twitter. All the messages are white-labeled and can be customized for any marketing opportunities. Aftership also provides online stores a reporting tool so that they can easily find out any shipping problems like delayed delivery and solve immediately. Aftership currently supports over 40 shipping companies worldwide.</description>
11
  <notes>Fixed minor bugs</notes>
12
  <authors><author><name>aftership</name><user>aftership</user><email>support@aftership.com</email></author></authors>
13
- <date>2012-06-14</date>
14
- <time>02:56:47</time>
15
- <contents><target name="magecommunity"><dir name="Aftership"><dir name="Track"><dir name="Helper"><file name="Data.php" hash="970d03deb3e5fc478f5d86e5ff3670cb"/></dir><dir name="Model"><file name="Methods.php" hash="d9fa7ef3df0353c01662ff4bdf210f60"/><dir name="Mysql4"><dir name="Track"><file name="Collection.php" hash="336c4b0fba8db78e1222da01aa8c5744"/></dir><file name="Track.php" hash="90ad226fa98576fceb223b85fe88b642"/></dir><file name="Observer.php" hash="ee4d789419117c40b8035bda4d04a3d9"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="b53f65ecc832752c8394f0da74b2f90d"/></dir></dir><file name="Track.php" hash="eb12833d5f084b0b919cbde45f8170eb"/><file name="Words.php" hash="7789e47b991f718fb3097b5e274eb71f"/></dir><dir name="controllers"><file name="IndexController.php" hash="bc2bd83404fb537b914c6c771e0f0f2f"/></dir><dir name="etc"><file name="config.xml" hash="44b407dcd58774176a2a37191daf04a2"/><file name="system.xml" hash="24bd66d83794242ddf8433fccc48f893"/></dir><dir name="sql"><dir name="track_setup"><file name="mysql4-install-0.1.0.php" hash="03e6e8dc8c5097f37999880b2778f69c"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Aftership_Track.xml" hash="6518f61d8f390f4fc8a517b2b15b01d1"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.17</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>aftership</name>
4
+ <version>0.1.10</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
10
  <description>Users can simply link their online stores to Aftership and view all packages in one place. Online stores can also automatically inform their customers of the latest delivery status through SMS, email and Twitter. All the messages are white-labeled and can be customized for any marketing opportunities. Aftership also provides online stores a reporting tool so that they can easily find out any shipping problems like delayed delivery and solve immediately. Aftership currently supports over 40 shipping companies worldwide.</description>
11
  <notes>Fixed minor bugs</notes>
12
  <authors><author><name>aftership</name><user>aftership</user><email>support@aftership.com</email></author></authors>
13
+ <date>2012-06-15</date>
14
+ <time>03:25:38</time>
15
+ <contents><target name="magecommunity"><dir name="Aftership"><dir name="Track"><dir name="Helper"><file name="Data.php" hash="970d03deb3e5fc478f5d86e5ff3670cb"/></dir><dir name="Model"><file name="Methods.php" hash="d9fa7ef3df0353c01662ff4bdf210f60"/><dir name="Mysql4"><dir name="Track"><file name="Collection.php" hash="336c4b0fba8db78e1222da01aa8c5744"/></dir><file name="Track.php" hash="90ad226fa98576fceb223b85fe88b642"/></dir><file name="Observer.php" hash="935148c4531c3c4961cf9ac8212508f5"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="b53f65ecc832752c8394f0da74b2f90d"/></dir></dir><file name="Track.php" hash="eb12833d5f084b0b919cbde45f8170eb"/><file name="Words.php" hash="7789e47b991f718fb3097b5e274eb71f"/></dir><dir name="controllers"><file name="IndexController.php" hash="bc2bd83404fb537b914c6c771e0f0f2f"/></dir><dir name="etc"><file name="config.xml" hash="44b407dcd58774176a2a37191daf04a2"/><file name="system.xml" hash="24bd66d83794242ddf8433fccc48f893"/></dir><dir name="sql"><dir name="track_setup"><file name="mysql4-install-0.1.0.php" hash="03e6e8dc8c5097f37999880b2778f69c"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Aftership_Track.xml" hash="6518f61d8f390f4fc8a517b2b15b01d1"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.17</min><max>6.0.0</max></php></required></dependencies>
18
  </package>