Version Notes
PHP Version 5.3 compatibility fix
Download this release
Release Info
Developer | Shiptheory |
Extension | Shiptheory_Dpd |
Version | 0.0.2 |
Comparing to | |
See all releases |
Code changes from version 0.0.1 to 0.0.2
app/code/local/Shiptheory/Dpd/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Shiptheory_Dpd>
|
5 |
-
<version>0.0.
|
6 |
</Shiptheory_Dpd>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Shiptheory_Dpd>
|
5 |
+
<version>0.0.2</version>
|
6 |
</Shiptheory_Dpd>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/Shiptheory/Shippinglabels/Model/Order/Observer.php
CHANGED
@@ -21,9 +21,9 @@ class Shiptheory_Shippinglabels_Model_Order_Observer
|
|
21 |
public function order($observer)
|
22 |
{
|
23 |
$order = $observer->getEvent()->getOrder();
|
24 |
-
$data =
|
25 |
'order_id' => $order->getId()
|
26 |
-
|
27 |
|
28 |
return $this->queue($order, $data);
|
29 |
}
|
@@ -37,10 +37,10 @@ class Shiptheory_Shippinglabels_Model_Order_Observer
|
|
37 |
public function shipment($observer)
|
38 |
{
|
39 |
$order = Mage::getModel('sales/order')->load($observer->getEvent()->getShipment()->getOrderId());
|
40 |
-
$data =
|
41 |
'order_id' => $observer->getEvent()->getShipment()->getOrderId(),
|
42 |
'shipment_id' => $observer->getEvent()->getShipment()->getIncrementId()
|
43 |
-
|
44 |
|
45 |
return $this->queue($order, $data);
|
46 |
}
|
21 |
public function order($observer)
|
22 |
{
|
23 |
$order = $observer->getEvent()->getOrder();
|
24 |
+
$data = array(
|
25 |
'order_id' => $order->getId()
|
26 |
+
);
|
27 |
|
28 |
return $this->queue($order, $data);
|
29 |
}
|
37 |
public function shipment($observer)
|
38 |
{
|
39 |
$order = Mage::getModel('sales/order')->load($observer->getEvent()->getShipment()->getOrderId());
|
40 |
+
$data = array(
|
41 |
'order_id' => $observer->getEvent()->getShipment()->getOrderId(),
|
42 |
'shipment_id' => $observer->getEvent()->getShipment()->getIncrementId()
|
43 |
+
);
|
44 |
|
45 |
return $this->queue($order, $data);
|
46 |
}
|
package.xml
CHANGED
@@ -1,18 +1,2 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<package>
|
3 |
-
<name>Shiptheory_Dpd</name>
|
4 |
-
<version>0.0.1</version>
|
5 |
-
<stability>stable</stability>
|
6 |
-
<license>Commercial</license>
|
7 |
-
<channel>community</channel>
|
8 |
-
<extends/>
|
9 |
-
<summary>DPD Label API Integration from Shiptheory</summary>
|
10 |
-
<description>Automatically print DPD labels over the API via Shiptheory</description>
|
11 |
-
<notes>First public release</notes>
|
12 |
-
<authors><author><name>Shiptheory</name><user>Shiptheory</user><email>jm@shiptheory.com</email></author></authors>
|
13 |
-
<date>2015-06-03</date>
|
14 |
-
<time>11:44:55</time>
|
15 |
-
<contents><target name="magelocal"><dir name="Shiptheory"><dir name="Shippinglabels"><dir name="Block"><dir name="Adminhtml"><dir name="Shippinglabels"><file name="Grid.php" hash="1099b2faa55eda067bb15ecfb80413a7"/></dir><file name="Shippinglabels.php" hash="05b1c45a36c12d3187fef98ae2d9c3b2"/><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="024b80c408fd77ab1812d704c10d0d4d"/></dir></dir></dir><file name="Version.php" hash="618012aaf852cd46916d4fdd84693565"/></dir><dir name="Button"><file name="New.php" hash="953ee6083efc34652fa5d94c1ca50d45"/></dir></dir><dir name="Helper"><file name="Data.php" hash="f4d82e348cc5e3b7e91982adc7a0b8f8"/></dir><dir name="Model"><dir name="Config"><file name="Api.php" hash="c7de3c569a76254325a6b05573bd83f3"/><file name="Observer.php" hash="141afba8743c87683801c7a6af03d45d"/></dir><file name="Config.php" hash="58b24c47648ece1ddf1acc1af317295b"/><dir name="History"><file name="Observer.php" hash="592bd633a817b761d1bbcfee9b7968bb"/></dir><file name="History.php" hash="62959bc10994b928255649bc4635abf9"/><dir name="Mysql4"><dir name="History"><file name="Collection.php" hash="8a747d6252f8931306471e33437b4f54"/></dir><file name="History.php" hash="bc875bf7269a0cee5ecddd1624c26346"/></dir><file name="Observer.php" hash="8b6733b5b435c4b6a52c96df7893ce22"/><dir name="Order"><file name="Observer.php" hash="4f44081b2359a4dd5f3cc25d9eec55bc"/></dir><file name="Order.php" hash="ca8bc351613977f43ad456070b2d8e10"/><file name="Version.php" hash="49415c1410ee2b5092e9c40f03b2e376"/><file name="Webservice.php" hash="ce6de35d30c4c95ba35d0e39f499e963"/></dir><file name="Triggers.php" hash="7f4d01e26f881bfaa8953a412a44271c"/><dir name="controllers"><dir name="Adminhtml"><file name="ShippinglabelsController.php" hash="bbabef05a15187bcdc2ff6c9d3f346ce"/></dir></dir><dir name="etc"><file name="api.xml" hash="2fb258d64df452f4f4a6426c4bec6e97"/><file name="config.xml" hash="73f06f6146bc9cdf5db3a175635b8c76"/><file name="system.xml" hash="ec9996a06e69215bb6b8f1ba0c5d4029"/></dir><dir name="sql"><dir name="shippinglabels_setup"><file name="mysql4-install-0.0.1.php" hash="1c8c491e7fb45b51d2251f109102dfaf"/></dir></dir></dir><dir name="Dpd"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="6c0994a60132b6328e1095ee6455300e"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="86337174946b2bc7b4504ccad79b3402"/></dir><dir name="etc"><file name="config.xml" hash="558eb21d131ebe76af26313efb3d1bba"/><file name="system.xml" hash="ecdd2ce0cc932cf62b5e1f4259e071ae"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Shiptheory_Shippinglabels.xml" hash="0b912d0fab3b1c2b87a687fa5ba064e2"/><file name="Shiptheory_Dpd.xml" hash="fd2be5b85b0af7a8054aab162e1ab59f"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="shiptheory"><dir name="css"><file name="shiptheory.css" hash="7bd374d2212a6ab7eaf400705999378f"/></dir><dir name="images"><file name="shiptheory-section.png" hash="42f15b05c3667db74104f4dc73af2392"/><file name="shiptheory.png" hash="42f15b05c3667db74104f4dc73af2392"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="layout"><file name="shiptheory.xml" hash="f9c980e4c2b9f95dbee962831b9dd52e"/></dir><dir name="template"><dir name="shiptheory"><dir name="system"><dir name="config"><dir name="fieldset"><file name="dpd.phtml" hash="20902c5896e79fc8cbbe088a63ba2820"/><file name="hint.phtml" hash="398365cf3943f32446dbda1fbd150c3d"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
-
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
-
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<package><name>Shiptheory_Dpd</name><version>0.0.2</version><stability>stable</stability><license>Commercial</license><channel>community</channel><extends></extends><summary>DPD Label API Integration from Shiptheory</summary><description>Automatically print DPD labels over the API via Shiptheory</description><notes>PHP Version 5.3 compatibility fix</notes><authors><author><name>Shiptheory</name><user>Shiptheory</user><email>jm@shiptheory.com</email></author></authors><date>2015-06-15</date><time>7:02:22</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="shiptheory"><dir name="images"><file name="shiptheory-section.png" hash="42f15b05c3667db74104f4dc73af2392"/><file name="shiptheory.png" hash="42f15b05c3667db74104f4dc73af2392"/></dir><dir name="css"><file name="shiptheory.css" hash="7bd374d2212a6ab7eaf400705999378f"/></dir></dir></dir></dir></dir></dir><dir name="app"><dir name="etc"><dir name="modules"><file name="Shiptheory_Dpd.xml" hash="fd2be5b85b0af7a8054aab162e1ab59f"/><file name="Shiptheory_Shippinglabels.xml" hash="0b912d0fab3b1c2b87a687fa5ba064e2"/></dir></dir><dir name="design"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="shiptheory"><dir name="system"><dir name="config"><dir name="fieldset"><file name="dpd.phtml" hash="20902c5896e79fc8cbbe088a63ba2820"/><file name="hint.phtml" hash="398365cf3943f32446dbda1fbd150c3d"/></dir></dir></dir></dir></dir><dir name="layout"><file name="shiptheory.xml" hash="f9c980e4c2b9f95dbee962831b9dd52e"/></dir></dir></dir></dir></dir><dir name="code"><dir name="local"><dir name="Shiptheory"><dir name="Dpd"><dir name="Helper"><file name="Data.php" hash="86337174946b2bc7b4504ccad79b3402"/></dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="6c0994a60132b6328e1095ee6455300e"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="479da25242a4e46086c85332f8a7856b"/><file name="system.xml" hash="ecdd2ce0cc932cf62b5e1f4259e071ae"/></dir></dir><dir name="Shippinglabels"><file name="Triggers.php" hash="7f4d01e26f881bfaa8953a412a44271c"/><dir name="controllers"><dir name="Adminhtml"><file name="ShippinglabelsController.php" hash="bbabef05a15187bcdc2ff6c9d3f346ce"/></dir></dir><dir name="Helper"><file name="Data.php" hash="f4d82e348cc5e3b7e91982adc7a0b8f8"/></dir><dir name="sql"><dir name="shippinglabels_setup"><file name="mysql4-install-0.0.1.php" hash="1c8c491e7fb45b51d2251f109102dfaf"/></dir></dir><dir name="Model"><file name="Config.php" hash="58b24c47648ece1ddf1acc1af317295b"/><file name="History.php" hash="62959bc10994b928255649bc4635abf9"/><file name="Observer.php" hash="8b6733b5b435c4b6a52c96df7893ce22"/><file name="Order.php" hash="ca8bc351613977f43ad456070b2d8e10"/><file name="Version.php" hash="49415c1410ee2b5092e9c40f03b2e376"/><file name="Webservice.php" hash="ce6de35d30c4c95ba35d0e39f499e963"/><dir name="Order"><file name="Observer.php" hash="089950ac0f9eb7ffc7e0b023ebb91093"/></dir><dir name="Mysql4"><file name="History.php" hash="bc875bf7269a0cee5ecddd1624c26346"/><dir name="History"><file name="Collection.php" hash="8a747d6252f8931306471e33437b4f54"/></dir></dir><dir name="History"><file name="Observer.php" hash="592bd633a817b761d1bbcfee9b7968bb"/></dir><dir name="Config"><file name="Api.php" hash="c7de3c569a76254325a6b05573bd83f3"/><file name="Observer.php" hash="141afba8743c87683801c7a6af03d45d"/></dir></dir><dir name="etc"><file name="api.xml" hash="2fb258d64df452f4f4a6426c4bec6e97"/><file name="config.xml" hash="73f06f6146bc9cdf5db3a175635b8c76"/><file name="system.xml" hash="ec9996a06e69215bb6b8f1ba0c5d4029"/></dir><dir name="Block"><dir name="Button"><file name="New.php" hash="953ee6083efc34652fa5d94c1ca50d45"/></dir><dir name="Adminhtml"><file name="Shippinglabels.php" hash="05b1c45a36c12d3187fef98ae2d9c3b2"/><file name="Version.php" hash="618012aaf852cd46916d4fdd84693565"/><dir name="Shippinglabels"><file name="Grid.php" hash="1099b2faa55eda067bb15ecfb80413a7"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="024b80c408fd77ab1812d704c10d0d4d"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents></package>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|