Version Notes
Minor bugs fixed
Download this release
Release Info
| Developer | aftership |
| Extension | aftership |
| Version | 0.2.0 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1.16 to 0.2.0
app/code/community/Aftership/Track/Model/Observer.php
CHANGED
|
@@ -147,7 +147,7 @@ class Aftership_Track_Model_Observer
|
|
| 147 |
$url_params = array(
|
| 148 |
"api_key" => $api_key
|
| 149 |
);
|
| 150 |
-
$url = "
|
| 151 |
|
| 152 |
$ch = curl_init();
|
| 153 |
curl_setopt($ch, CURLOPT_URL, $url);
|
| 147 |
$url_params = array(
|
| 148 |
"api_key" => $api_key
|
| 149 |
);
|
| 150 |
+
$url = "https://api.aftership.com/v1/users/authenticate";
|
| 151 |
|
| 152 |
$ch = curl_init();
|
| 153 |
curl_setopt($ch, CURLOPT_URL, $url);
|
app/code/community/Aftership/Track/sql/track_setup/mysql4-install-0.1.0.php
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
//echo "start";
|
| 3 |
+
$installer = $this;
|
| 4 |
+
$installer->startSetup();
|
| 5 |
+
$installer->run("DROP TABLE IF EXISTS `{$installer->getTable('track/track')}`;");
|
| 6 |
+
$installer->run("
|
| 7 |
+
CREATE TABLE `{$installer->getTable('track/track')}` (
|
| 8 |
+
`track_id` int(11) NOT NULL AUTO_INCREMENT,
|
| 9 |
+
`tracking_number` varchar(255) NOT NULL,
|
| 10 |
+
`ship_comp_code` varchar(255) NOT NULL,
|
| 11 |
+
`email` varchar(255) NOT NULL,
|
| 12 |
+
`telephone` varchar(255) NOT NULL,
|
| 13 |
+
`title` varchar(255) NOT NULL,
|
| 14 |
+
`posted` int(11) NOT NULL DEFAULT '0',
|
| 15 |
+
`order_id` varchar(255) NOT NULL,
|
| 16 |
+
PRIMARY KEY (`track_id`),
|
| 17 |
+
KEY `posted` (`posted`)
|
| 18 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
");
|
| 22 |
+
$installer->endSetup();
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
//echo 'Running This Upgrade: '.get_class($this)."\n <br /> \n";
|
| 26 |
+
//die("Exit for now");
|
| 27 |
+
/*
|
| 28 |
+
CREATE TABLE `{$installer->getTable('track/user')}` (
|
| 29 |
+
`user_id` int(11) NOT NULL,
|
| 30 |
+
`login_name` varchar(255) NOT NULL,
|
| 31 |
+
`password` varchar(255) NOT NULL,
|
| 32 |
+
`consumer_key` varchar(255) NOT NULL,
|
| 33 |
+
`consumer_secret` varchar(255) NOT NULL,
|
| 34 |
+
`status` int(11) NOT NULL,
|
| 35 |
+
PRIMARY KEY (`user_id`),
|
| 36 |
+
KEY `status` (`status`)
|
| 37 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
| 38 |
+
*/
|
| 39 |
+
?>
|
app/etc/modules/Aftership_Track.xml
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<config>
|
| 3 |
-
<modules>
|
| 4 |
-
<Aftership_Track>
|
| 5 |
-
<active>true</active>
|
| 6 |
-
<codePool>community</codePool>
|
| 7 |
-
</Aftership_Track>
|
| 8 |
-
</modules>
|
| 9 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
|
@@ -1,19 +1,23 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>aftership</name>
|
| 4 |
-
<version>0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
-
<summary>AfterShip magento extension interface.
|
| 10 |
-
Please go to aftership.com to change the notification setting and value.</summary>
|
| 11 |
-
<description>Users can simply link their online stores to Aftership and view all packages in one place. Online
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
<authors><author><name>aftership</name><user>aftership</user><email>support@aftership.com</email></author></authors>
|
| 14 |
-
<date>2012-
|
| 15 |
-
<time>
|
| 16 |
-
<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="
|
| 17 |
<compatible/>
|
| 18 |
-
<dependencies><required><php><min>5.2.17</min><max>
|
| 19 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>aftership</name>
|
| 4 |
+
<version>0.2.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
+
<summary>AfterShip magento extension interface. 
|
| 10 |
+
Tracking number will be added to the aftership.com <https://www.aftership.com> account at the same time when input in magento shipment. Please go to aftership.com <https://www.aftership.com> to change the notification setting and value.</summary>
|
| 11 |
+
<description>Users can simply link their online stores to Aftership and view all packages in one place. Online
|
| 12 |
+
stores can also automatically inform their customers of the latest delivery status through SMS, email and
|
| 13 |
+
Twitter. All the messages are white-labeled and can be customized for any marketing opportunities. Aftership
|
| 14 |
+
also provides online stores a reporting tool so that they can easily find out any shipping problems like delayed
|
| 15 |
+
delivery and solve immediately. Aftership currently supports over 40 shipping companies worldwide.</description>
|
| 16 |
+
<notes>Minor bugs fixed</notes>
|
| 17 |
<authors><author><name>aftership</name><user>aftership</user><email>support@aftership.com</email></author></authors>
|
| 18 |
+
<date>2012-10-20</date>
|
| 19 |
+
<time>14:32:34</time>
|
| 20 |
+
<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="8c79116a10240f064f19aa68b06414ff"/><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="3ee34f42957e816ff336f8f8215a218b"/></dir><dir name="etc"><file name="config.xml" hash="9464ce90e641252897520a5a4b0afc6b"/><file name="system.xml" hash="857fa4fae0433c10ba468bff794ca9ef"/></dir><dir name="sql"><dir name="track_setup"><file name="mysql4-install-0.1.0.php" hash="a8f81083585c85a89e8a3097f5f3045c"/><file name="mysql4-install-0.1.16.php" hash="a8f81083585c85a89e8a3097f5f3045c"/></dir></dir></dir></dir></target></contents>
|
| 21 |
<compatible/>
|
| 22 |
+
<dependencies><required><php><min>5.2.17</min><max>0.0.0</max></php></required></dependencies>
|
| 23 |
</package>
|
