easyshipper - Version 0.1.2

Version Notes

First time release. Enabling our existing, and future Magento customers to send an orders shipping address to the Sendr backend. A button has been added inside every order called [ Get a label with sendr ]

Download this release

Release Info

Developer ShopWeDo
Extension easyshipper
Version 0.1.2
Comparing to
See all releases


Version 0.1.2

app/code/local/ShopWeDo/EasyShipper/Block/Adminhtml/Sales/Order/View.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ShopWeDo
4
+ * Make Easy Shipper Labels
5
+ *
6
+ * Adds a button to a Sales Order View which opens a new window with the EasyShipper
7
+ */
8
+ class ShopWeDo_EasyShipper_Block_Adminhtml_Sales_Order_View extends Mage_Adminhtml_Block_Sales_Order_View {
9
+ public function __construct() {
10
+ parent::__construct();
11
+ $orderId = $this->getOrder()->getIncrementId();
12
+ $url = "https://www.startsendr.com/admin/shipper/add?".http_build_query(array('ext'=>'magento','order'=>$orderId));
13
+ $this->addButton('sendtoswdsendr', array(
14
+ 'label' => Mage::helper('sales')->__('Get a label with sendr'),
15
+ 'onclick' => "popWin('".$url."','_blank')",
16
+ 'class' => "go",
17
+ ), 0, 99, 'header', 'header');
18
+ }
19
+ }
20
+ ?>
app/code/local/ShopWeDo/EasyShipper/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class ShopWeDo_EasyShipper_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/local/ShopWeDo/EasyShipper/Model/Api.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class ShopWeDo_EasyShipper_Model_Api extends Mage_Api_Model_Resource_Abstract
3
+ {
4
+ public function swdShipments()
5
+ {
6
+ return $this->getShipments();
7
+ }
8
+ public function swdPaginationableOrders()
9
+ {
10
+ return $this->getOrders();
11
+ }
12
+ }
app/code/local/ShopWeDo/EasyShipper/etc/api.xml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <api>
4
+ <resources>
5
+ <easyshipper_api translate="title" module="easyshipper">
6
+ <title>Myapi</title>
7
+ <acl>easyshipper/api</acl>
8
+ <model>easyshipper/api</model>
9
+ <methods>
10
+ <swdshipments translate="title" module="easyshipper">
11
+ <title>swdShipments</title>
12
+ <acl>easyshipper/swdshipments</acl>
13
+ </swdshipments>
14
+ <swdpaginationableorders translate="title" module="easyshipper">
15
+ <title>swdPaginationableOrders</title>
16
+ <acl>easyshipper/swdpaginationableorders</acl>
17
+ </swdpaginationableorders>
18
+ </methods>
19
+ </easyshipper_api>
20
+ </resources>
21
+ <acl>
22
+ <resources>
23
+ <easyshipper translate="title" module="easyshipper">
24
+ <title>EasyShipper</title>
25
+ <sort_order>2000</sort_order>
26
+ <swdshipments translate="title" module="easyshipper">
27
+ <title>swdShipments</title>
28
+ </swdshipments>
29
+ <swdpaginationableorders translate="title" module="easyshipper">
30
+ <title>swdPaginationableOrders</title>
31
+ </swdpaginationableorders>
32
+ </easyshipper>
33
+ </resources>
34
+ </acl>
35
+ </api>
36
+ </config>
app/code/local/ShopWeDo/EasyShipper/etc/config.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <ShopWeDo_EasyShipper>
5
+ <version>0.1.2</version>
6
+ </ShopWeDo_EasyShipper>
7
+ </modules>
8
+ <global>
9
+ <helpers>
10
+ <easyshipper>
11
+ <class>ShopWeDo_EasyShipper_Helper</class>
12
+ </easyshipper>
13
+ </helpers>
14
+ <blocks>
15
+ <easyshipper>
16
+ <class>ShopWeDo_EasyShipper_Block</class>
17
+ </easyshipper>
18
+ </blocks>
19
+ <models>
20
+ <easyshipper>
21
+ <class>ShopWeDo_EasyShipper_Model</class>
22
+ <resourceModel>easyshipper_mysql4</resourceModel>
23
+ </easyshipper>
24
+ </models>
25
+ <blocks>
26
+ <easyshipper>
27
+ <class>ShopWeDo_EasyShipper_Block</class>
28
+ </easyshipper>
29
+ <adminhtml>
30
+ <rewrite>
31
+ <sales_order_view>ShopWeDo_EasyShipper_Block_Adminhtml_Sales_Order_View</sales_order_view>
32
+ </rewrite>
33
+ </adminhtml>
34
+ </blocks>
35
+ </global>
36
+ <admin>
37
+ <routers>
38
+ <easyshipper>
39
+ <use>admin</use>
40
+ <args>
41
+ <module>ShopWeDo_EasyShipper</module>
42
+ <frontName>admin_easyshipper</frontName>
43
+ </args>
44
+ </easyshipper>
45
+ </routers>
46
+ </admin>
47
+ <adminhtml>
48
+ <acl>
49
+ <resources>
50
+ <all>
51
+ <title>Allow Everything</title>
52
+ </all>
53
+ </resources>
54
+ </acl>
55
+ <layout>
56
+ <updates>
57
+ <easyshipper>
58
+ <file>easyshipper.xml</file>
59
+ </easyshipper>
60
+ </updates>
61
+ </layout>
62
+ </adminhtml>
63
+ </config>
app/design/adminhtml/default/default/layout/easyshipper.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <easyshipper_adminhtml_easyshipperbackend_index>
4
+ <reference name="content">
5
+ <block type="easyshipper/adminhtml_easyshipperbackend" name="easyshipperbackend" template="easyshipper/easyshipperbackend.phtml"/>
6
+ </reference>
7
+ </easyshipper_adminhtml_easyshipperbackend_index>
8
+ </layout>
app/etc/modules/ShopWeDo_EasyShipper.xml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <ShopWeDo_EasyShipper>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ <depends>
8
+ <Mage_Api />
9
+ </depends>
10
+ <version>0.1.0</version>
11
+ </ShopWeDo_EasyShipper>
12
+ </modules>
13
+ </config>
package.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>easyshipper</name>
4
+ <version>0.1.2</version>
5
+ <stability>stable</stability>
6
+ <license uri="https://www.startsendr.com/nl/algemene-voorwaarden.html">ShopWeDo cvba</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Sendr is a Belgian shipping solution optimized for E-commerce by ShopWeDo.com</summary>
10
+ <description>We offer a simple and cost effective service to ship your parcels worldwide.&#xD;
11
+ &lt;ul&gt;&lt;li&gt;Send your parcels at 30-50% cheaper rates&lt;/li&gt;&lt;li&gt;View our prices on our website&lt;/li&gt;&lt;li&gt;Choose home delivery or (from within ShopWeDo: thousands of pickup points) all over the Benelux and Europe&lt;/li&gt;&lt;li&gt;No minimum, no contract required&lt;/li&gt;&lt;li&gt;Track and Trace emails&lt;/li&gt;&lt;/ul&gt;Pay as you use: We only charge the shipping costs of parcels you've sent. So, no hidden costs or contracts.</description>
12
+ <notes>First time release. Enabling our existing, and future Magento customers to send an orders shipping address to the Sendr backend. A button has been added inside every order called [ Get a label with sendr ]</notes>
13
+ <authors><author><name>ShopWeDo</name><user>MAG003267953</user><email>support@shopwedo.com</email></author></authors>
14
+ <date>2016-09-14</date>
15
+ <time>11:12:57</time>
16
+ <contents><target name="magelocal"><dir name="ShopWeDo"><dir name="EasyShipper"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="View.php" hash="23f43bea9baa55be564833307dda52b5"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="a460718562e4e3e65add022bff1d8eb5"/></dir><dir name="Model"><file name="Api.php" hash="2e7c4df78aaa951f364739e97c0e5378"/></dir><dir name="etc"><file name="api.xml" hash="75d9c9953b08ef8d47f8381c55c9d6b3"/><file name="config.xml" hash="b0c6eb1d72470e85157782f9b64a53f4"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ShopWeDo_EasyShipper.xml" hash="fb0cf9ccf556413a64defa20a404a2fd"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="easyshipper.xml" hash="759d0682ef657caad533819a4675664f"/></dir></dir></dir></dir></target></contents>
17
+ <compatible/>
18
+ <dependencies><required><php><min>5.1.0</min><max>7.0.0</max></php></required></dependencies>
19
+ </package>