HusseyCoding_Sirportly - Version 1.2.2

Version Notes

Added display of order data in Sirportly data frame

Download this release

Release Info

Developer Hussey Coding
Extension HusseyCoding_Sirportly
Version 1.2.2
Comparing to
See all releases


Code changes from version 1.2.1 to 1.2.2

app/code/community/HusseyCoding/Sirportly/Block/DataFrame.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class HusseyCoding_Sirportly_Block_DataFrame extends Mage_Core_Block_Template
3
+ {
4
+ public function getDataFrameUrl()
5
+ {
6
+ return Mage::getUrl('sirportly/orders');
7
+ }
8
+ }
app/code/community/HusseyCoding/Sirportly/Block/Orders.php ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class HusseyCoding_Sirportly_Block_Orders extends Mage_Core_Block_Template
3
+ {
4
+ public function getOrders()
5
+ {
6
+ $customer = $this->getCustomer();
7
+ $orders = Mage::getResourceModel('sales/order_collection');
8
+ $orders->getSelect()
9
+ ->where('customer_email = ?', $customer->getEmail())
10
+ ->order('created_at DESC');
11
+
12
+ if ($orders->count()):
13
+ $return = array();
14
+
15
+ foreach ($orders as $order):
16
+ $return[$order->getId()] = array(
17
+ 'number' => $order->getIncrementId(),
18
+ 'url' => $this->_getOrderUrl($order->getId()),
19
+ 'date' => $this->_getDate($order->getCreatedAt()),
20
+ 'time' => $this->_getTime($order->getCreatedAt()),
21
+ 'status' => $order->getStatus(),
22
+ 'items' => $this->_getOrderItemsData($order),
23
+ 'total' => $this->_formatPrice($order->getBaseGrandTotal()),
24
+ 'shipping' => $order->getShippingDescription(),
25
+ 'country' => $this->_getShippingCountry($order),
26
+ 'postcode' => $this->_getShippingPostcode($order)
27
+ );
28
+ endforeach;
29
+
30
+ if (!empty($return)) return $return;
31
+ endif;
32
+
33
+ return false;
34
+ }
35
+
36
+ public function getCustomerName()
37
+ {
38
+ return $this->getCustomer()->getName();
39
+ }
40
+
41
+ public function getCustomerEmail()
42
+ {
43
+ return $this->getCustomer()->getEmail();
44
+ }
45
+
46
+ private function _getOrderUrl($id)
47
+ {
48
+ return Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/view', array('order_id' => $id));
49
+ }
50
+
51
+ private function _getDate($timestamp)
52
+ {
53
+ if ($epoch = strtotime($timestamp)):
54
+ if ($date = date('jS M', $epoch)):
55
+ return $date;
56
+ endif;
57
+ endif;
58
+
59
+ return false;
60
+ }
61
+
62
+ private function _getTime($timestamp)
63
+ {
64
+ if ($epoch = strtotime($timestamp)):
65
+ if ($time = date('H:i', $epoch)):
66
+ return $time;
67
+ endif;
68
+ endif;
69
+
70
+ return false;
71
+ }
72
+
73
+ private function _getOrderItemsData(Mage_Sales_Model_Order $order)
74
+ {
75
+ $return = array();
76
+
77
+ foreach ($order->getAllItems() as $item):
78
+ $return[$item->getId()] = array(
79
+ 'sku' => $item->getSku(),
80
+ 'quantity' => (float) $item->getQtyOrdered(),
81
+ 'url' => $this->_getItemUrl($item->getProductId())
82
+ );
83
+ endforeach;
84
+
85
+ return !empty($return) ? $return : false;
86
+ }
87
+
88
+ private function _formatPrice($price)
89
+ {
90
+ return Mage::helper('core')->currency($price, true, false);
91
+ }
92
+
93
+ private function _getItemUrl($id)
94
+ {
95
+ return Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/edit', array('id' => $id));
96
+ }
97
+
98
+ private function _getShippingCountry(Mage_Sales_Model_Order $order)
99
+ {
100
+ if ($address = $order->getShippingAddress()):
101
+ if ($country = $address->getCountry()):
102
+ return $country;
103
+ endif;
104
+ endif;
105
+
106
+ return false;
107
+ }
108
+
109
+ private function _getShippingPostcode(Mage_Sales_Model_Order $order)
110
+ {
111
+ if ($address = $order->getShippingAddress()):
112
+ if ($postcode = $address->getPostcode()):
113
+ return $postcode;
114
+ endif;
115
+ endif;
116
+
117
+ return false;
118
+ }
119
+ }
app/code/community/HusseyCoding/Sirportly/controllers/OrdersController.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class HusseyCoding_Sirportly_OrdersController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $error = true;
7
+ if ($this->getRequest()->isPost()):
8
+ $data = $this->getRequest()->getPost();
9
+ if (!empty($data['key'])):
10
+ if ($key = Mage::getStoreConfig('sirportly/general/key')):
11
+ if ($key == $data['key']):
12
+ if (!empty($data['contacts']) && is_array($data['contacts'])):
13
+ $error = false;
14
+ if ($email = $this->_getEmail($data['contacts'])):
15
+ if ($customer = $this->_customerExists($email)):
16
+ $this->loadLayout();
17
+ $this->getLayout()->getBlock('root')->setCustomer($customer);
18
+ $this->renderLayout();
19
+ else:
20
+ $this->getResponse()->setBody($this->_notFoundHtml($email));
21
+ endif;
22
+ else:
23
+ $this->getResponse()->setBody($this->_noEmailHtml($email));
24
+ endif;
25
+ endif;
26
+ endif;
27
+ endif;
28
+ endif;
29
+ endif;
30
+
31
+ if ($error):
32
+ $this->getResponse()->setHttpResponseCode(500);
33
+ endif;
34
+ }
35
+
36
+ private function _getEmail($contacts)
37
+ {
38
+ foreach ($contacts as $contact):
39
+ if (strpos($contact, 'email') === 0):
40
+ $contact = explode(':', $contact);
41
+ $email = end($contact);
42
+ $validator = new Zend_Validate_EmailAddress();
43
+ if ($validator->isValid($email)):
44
+ return $email;
45
+ endif;
46
+ endif;
47
+ endforeach;
48
+
49
+ return false;
50
+ }
51
+
52
+ private function _customerExists($email)
53
+ {
54
+ if (Mage::getStoreConfig('customer/account_share/scope')):
55
+ foreach (Mage::getResourceModel('core/website_collection') as $website):
56
+ $customer = Mage::getModel('customer/customer');
57
+ $customer->setWebsiteId($website->getId());
58
+ $customer->loadByEmail($email);
59
+ if ($customer->getId()):
60
+ return $customer;
61
+ endif;
62
+ endforeach;
63
+ else:
64
+ $customer = Mage::getModel('customer/customer');
65
+ $customer->loadByEmail($email);
66
+ if ($customer->getId()):
67
+ return $customer;
68
+ endif;
69
+ endif;
70
+
71
+ return false;
72
+ }
73
+
74
+ private function _notFoundHtml($email)
75
+ {
76
+ return '<div>No Magento customer found with email address ' . $email . '.</div>';
77
+ }
78
+
79
+ private function _noEmailHtml()
80
+ {
81
+ return '<div>Please add an email address to this Sirportly contact.</div>';
82
+ }
83
+ }
app/code/community/HusseyCoding/Sirportly/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <HusseyCoding_Sirportly>
5
- <version>1.2.1</version>
6
  </HusseyCoding_Sirportly>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <HusseyCoding_Sirportly>
5
+ <version>1.2.2</version>
6
  </HusseyCoding_Sirportly>
7
  </modules>
8
  <global>
app/code/community/HusseyCoding/Sirportly/etc/system.xml CHANGED
@@ -56,6 +56,15 @@
56
  <show_in_store>0</show_in_store>
57
  <comment>Enter your Sirportly domain here to enable clickable links when viewing tickets e.g. domain.sirportly.com</comment>
58
  </domain>
 
 
 
 
 
 
 
 
 
59
  </fields>
60
  </general>
61
  <ticketassign translate="label">
56
  <show_in_store>0</show_in_store>
57
  <comment>Enter your Sirportly domain here to enable clickable links when viewing tickets e.g. domain.sirportly.com</comment>
58
  </domain>
59
+ <key>
60
+ <label>Data Frame Key</label>
61
+ <frontend_type>text</frontend_type>
62
+ <sort_order>2</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>0</show_in_website>
65
+ <show_in_store>0</show_in_store>
66
+ <comment>Add the key you used when creating the data frame in Sirportly.</comment>
67
+ </key>
68
  </fields>
69
  </general>
70
  <ticketassign translate="label">
app/design/adminhtml/default/default/layout/sirportly.xml CHANGED
@@ -26,4 +26,15 @@
26
  </action>
27
  </reference>
28
  </adminhtml_sales_order_view>
 
 
 
 
 
 
 
 
 
 
 
29
  </layout>
26
  </action>
27
  </reference>
28
  </adminhtml_sales_order_view>
29
+ <adminhtml_system_config_edit>
30
+ <reference name="head">
31
+ <action method="addItem">
32
+ <type>skin_js</type>
33
+ <name>sirportly/js/dataframe.js</name>
34
+ </action>
35
+ </reference>
36
+ <reference name="content">
37
+ <block type="sirportly/dataFrame" template="sirportly/dataframe.phtml" name="sirportly_dataframe" />
38
+ </reference>
39
+ </adminhtml_system_config_edit>
40
  </layout>
app/design/adminhtml/default/default/template/sirportly/dataframe.phtml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <script type="text/javascript">
2
+ //<![CDATA[
3
+ var thisdataframe = new dataframe();
4
+ thisdataframe.url = "<?php echo $this->getDataFrameUrl(); ?>";
5
+ //]]>
6
+ </script>
app/design/frontend/base/default/layout/sirportly.xml CHANGED
@@ -9,4 +9,7 @@
9
  </reference>
10
  <block type="core/template" name="sirportly_contact" template="sirportly/contact.phtml" after="-" parent="content" />
11
  </contacts_index_index>
 
 
 
12
  </layout>
9
  </reference>
10
  <block type="core/template" name="sirportly_contact" template="sirportly/contact.phtml" after="-" parent="content" />
11
  </contacts_index_index>
12
+ <sirportly_orders_index>
13
+ <block type="sirportly/orders" name="root" template="sirportly/orders.phtml" />
14
+ </sirportly_orders_index>
15
  </layout>
app/design/frontend/base/default/template/sirportly/orders.phtml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ($orders = $this->getOrders()): ?>
2
+ <table>
3
+ <thead>
4
+ <tr>
5
+ <td>Order Number</td>
6
+ <td>Created</td>
7
+ <td>Status</td>
8
+ <td>Items</td>
9
+ <td>Total</td>
10
+ <td>Shipping Method</td>
11
+ <td>Shipping Country</td>
12
+ </tr>
13
+ </thead>
14
+ <tbody>
15
+ <?php foreach ($orders as $id => $order): ?>
16
+ <tr>
17
+ <td>
18
+ <a href="<?php echo $order['url']; ?>" target="_blank"><?php echo $order['number']; ?></a>
19
+ </td>
20
+ <td>On <?php echo $order['date']; ?> at <?php echo $order['time']; ?></td>
21
+ <td><?php echo $order['status']; ?></td>
22
+ <?php if ($order['items']): ?>
23
+ <td>
24
+ <?php foreach ($order['items'] as $id => $item): ?>
25
+ <div>
26
+ <a href="<?php echo $item['url']; ?>" target="_blank"><?php echo $item['quantity']; ?> x <?php echo $item['sku']; ?></a>
27
+ </div>
28
+ <?php endforeach; ?>
29
+ </td>
30
+ <?php else: ?>
31
+ <td>None found</td>
32
+ <?php endif; ?>
33
+ <td><?php echo $order['total']; ?></td>
34
+ <?php if (!empty($order['shipping'])): ?>
35
+ <td><?php echo $order['shipping']; ?></td>
36
+ <?php else: ?>
37
+ <td>N/A</td>
38
+ <?php endif; ?>
39
+ <?php if (!empty($order['country']) && !empty($order['postcode'])): ?>
40
+ <td><?php echo $order['country']; ?> (<?php echo $order['postcode']; ?>)</td>
41
+ <?php else: ?>
42
+ <td>N/A</td>
43
+ <?php endif; ?>
44
+ </tr>
45
+ <?php endforeach; ?>
46
+ </tbody>
47
+ </table>
48
+ <?php else: ?>
49
+ <div>No Magento orders found for <?php echo $this->getCustomerName(); ?> (<?php echo $this->getCustomerEmail(); ?>).</div>
50
+ <?php endif; ?>
51
+
52
+ <style type="text/css">
53
+ html { font-family:'Helvetica Neue',Arial,sans-serif; }
54
+ body { font-size:11px; margin:0; padding:0; }
55
+ table { border-collapse:collapse; border-spacing:0; width:100%; }
56
+ thead, tr, td { vertical-align:baseline; }
57
+ td { font-weight:normal; font-size:11px; }
58
+ table tr td { border-bottom:1px solid #ccc; }
59
+ table thead td { color:#999; font-weight:bold; }
60
+ table td { padding:6px 10px; }
61
+ table tr td a { color:#000; }
62
+ table tbody tr:nth-child(2n) td { background-color:#f8f8f8; }
63
+ </style>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HusseyCoding_Sirportly</name>
4
- <version>1.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Magento to Sirportly integration.</summary>
10
- <description>Manage Sirportly ticketing directly from the admin sales page. Create and update ticket, grant permissions to Magento users, create tickets via the contact form, and when payments fail. </description>
11
- <notes>Added admin ticket creation and updating</notes>
12
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
13
- <date>2014-02-11</date>
14
- <time>18:26:55</time>
15
- <contents><target name="magecommunity"><dir name="HusseyCoding"><dir name="Sirportly"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><dir name="SirportlyTickets"><dir name="NewTicket"><file name="Teams.php" hash="f7a7f65e8625cf3b9058445bf0d8f3e3"/><file name="Users.php" hash="d7a716593560c6878eb66fc430c42235"/></dir><file name="NewTicket.php" hash="f8518605ca4e2be3d016c81758134aef"/><dir name="ReassignTicket"><file name="Teams.php" hash="f3111cf57e6cb963551b9d472274ef68"/><file name="Users.php" hash="1a93cc06137c1a8aae950f997780fdc7"/></dir><file name="ReassignTicket.php" hash="929da4c55aaedae15016910d041a8ed3"/><dir name="UpdateTicket"><file name="Responses.php" hash="0ad06db1985f628f3068abd0f3687f7a"/><file name="Teams.php" hash="57d50af8d240bb61a5f9510b31e471e0"/><file name="Users.php" hash="aee610ed1f056a3f024c3c30e6c92f13"/></dir><file name="UpdateTicket.php" hash="074fa76c1bbe0620b978d9c522da21c9"/></dir><file name="SirportlyTickets.php" hash="0258475df4adf2bfd750d0815c7fc558"/></dir></dir></dir></dir></dir><dir name="Permissions"><dir name="User"><dir name="Edit"><file name="AdminhtmlTabs.php" hash="b4ff2343bfcc9f0a0c23bc00b6907dcc"/><dir name="Tab"><file name="Sirportly.php" hash="7962c4aaaf22b2bc7af482c39ee058f8"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Sales"><file name="OrderController.php" hash="df9f32c2cf4c72807866e1413aa1c1ed"/></dir><file name="TicketController.php" hash="c3e74986c4d7c79a02a0a8df2564e174"/></dir><dir name="etc"><file name="adminhtml.xml" hash="31ce0056778c58c2430b0b2cccb9b1a5"/><file name="config.xml" hash="7d52651aecdd4c810ff22e05f0ca98ad"/><file name="system.xml" hash="a8681fcf0fdaa93cc7c853e65d3bd751"/></dir><dir name="Helper"><file name="CheckoutData.php" hash="08531cf50917af39a587802e3876a5f3"/><file name="Data.php" hash="8567dd97865170fde4c2858d0201e49f"/></dir><dir name="Model"><file name="Observer.php" hash="a14e57ea58ba025f62483efd650b55fa"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Department"><file name="Contact.php" hash="681e7d40a46fec9fc43690b298fc18d6"/><file name="OrderScreen.php" hash="8366770dddb56bbeaf601ed9dc5ba8d5"/><file name="PaymentFailed.php" hash="3b575ab12bb25c32aec4c62fef6febcd"/></dir><file name="Department.php" hash="f8a708f2e042365bd892bfd1f392fec3"/><dir name="Priority"><file name="Contact.php" hash="3415f060eac9c459afc1b0cef7b0a028"/><file name="OrderScreen.php" hash="bba6bc6ce4a79e95feb1470ea7455665"/><file name="PaymentFailed.php" hash="9b251fc35bc2bbc3299a8c1cfc8109c7"/></dir><file name="Priority.php" hash="682065ee3cdcab991e5fd252730c8640"/><dir name="Sla"><file name="OrderScreen.php" hash="1c3dd6fcca20564d2b6f869c723fc936"/></dir><dir name="Status"><file name="Contact.php" hash="47d7f3976f25eff30a2ef816a6682e26"/><file name="OrderScreen.php" hash="f29f5c9314e4e26fbabced9573c2e822"/><file name="PaymentFailed.php" hash="8d625f92c1b5c5119017443b5ad42ff4"/></dir><file name="Status.php" hash="60fd06d1743463ad345afa2cb1827e9d"/><dir name="Team"><file name="Contact.php" hash="d851dd72b7278cf1b755c8bfba869bcc"/><file name="OrderScreen.php" hash="6fdf9a9fe1ab6b6ff3124763012d0845"/><file name="PaymentFailed.php" hash="a54aff316e6f9357c7bc8c1e283cf306"/></dir><file name="Team.php" hash="1b1fc5cfb6c50a74a57aba2252f43874"/></dir></dir></dir></dir><dir name="sql"><dir name="sirportly_setup"><file name="mysql4-upgrade-1.1.0-1.2.0.php" hash="d6e621d7c0bbc250d42637fcc96749c5"/><file name="mysql4-upgrade-1.2.0-1.2.1.php" hash="b936b0b9063cf18faa50cfea6b29ffad"/></dir></dir></dir><dir name="Common"><dir name="etc"><file name="system.xml" hash="6c9ba9f227b9adfc9abf97f17b46fdbf"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="HusseyCoding_Sirportly.xml" hash="a92236145783da6931bf04a2028ae285"/><file name="HusseyCoding_Common.xml" hash="31e82d3d9b3179c2fa9e002f9669da47"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="sirportly.xml" hash="60e4095bd8f1dcf51c3ae0c2daa70147"/></dir><dir name="template"><dir name="sirportly"><file name="contact.phtml" hash="6ccfad5b873caa4801fbc8196ec23ee8"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="sirportly.xml" hash="b0818879173a4b0b7fc94d9a790a42ab"/></dir><dir name="template"><dir name="sirportly"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="sirportlytickets"><dir name="newticket"><file name="teams.phtml" hash="ee72d305c9a0f2a1c24b9cd170b647f3"/><file name="users.phtml" hash="c7517e0a90187ecda3d6283b20cb35f5"/></dir><file name="newticket.phtml" hash="154b6063eee86a3f81e9f2d2260476c2"/><dir name="reassignticket"><file name="teams.phtml" hash="ee72d305c9a0f2a1c24b9cd170b647f3"/><file name="users.phtml" hash="c7517e0a90187ecda3d6283b20cb35f5"/></dir><file name="reassignticket.phtml" hash="be508dc8e0cab5cde8af3ed3ca4d3478"/><dir name="updateticket"><file name="responses.phtml" hash="5728d3cc7ac676b23fab4009d5c69eb3"/><file name="teams.phtml" hash="ee72d305c9a0f2a1c24b9cd170b647f3"/><file name="users.phtml" hash="c7517e0a90187ecda3d6283b20cb35f5"/></dir><file name="updateticket.phtml" hash="d5cb94378bedc6b6c85d765c3de1fe71"/></dir><file name="sirportlytickets.phtml" hash="18699fd5f0ec829f1e9198783375602e"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="sirportlysubmit.js" hash="879ecd9e6065fb6dc062d5af452d0832"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="sirportly"><dir name="css"><file name="ordertickets.css" hash="c67409ea88574c5213fa0885fba6dab6"/></dir><dir name="js"><file name="livepipe.js" hash="417ba064736fed2772778641f66555c0"/><file name="ordertickets.js" hash="66e78fc30ae7e40141474b8502446b8d"/><file name="window.js" hash="f6eba488d6a80e05f59d97a0cef59730"/></dir></dir></dir></dir></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>HusseyCoding_Sirportly</name>
4
+ <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Magento to Sirportly integration.</summary>
10
+ <description>Manage Sirportly ticketing directly from the admin sales page. Create and update ticket, grant permissions to Magento users, create tickets via the contact form, and when payments fail.</description>
11
+ <notes>Added display of order data in Sirportly data frame</notes>
12
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
13
+ <date>2014-04-29</date>
14
+ <time>08:07:45</time>
15
+ <contents><target name="magecommunity"><dir name="HusseyCoding"><dir name="Sirportly"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><dir name="SirportlyTickets"><dir name="NewTicket"><file name="Teams.php" hash="f7a7f65e8625cf3b9058445bf0d8f3e3"/><file name="Users.php" hash="d7a716593560c6878eb66fc430c42235"/></dir><file name="NewTicket.php" hash="f8518605ca4e2be3d016c81758134aef"/><dir name="ReassignTicket"><file name="Teams.php" hash="f3111cf57e6cb963551b9d472274ef68"/><file name="Users.php" hash="1a93cc06137c1a8aae950f997780fdc7"/></dir><file name="ReassignTicket.php" hash="929da4c55aaedae15016910d041a8ed3"/><dir name="UpdateTicket"><file name="Responses.php" hash="0ad06db1985f628f3068abd0f3687f7a"/><file name="Teams.php" hash="57d50af8d240bb61a5f9510b31e471e0"/><file name="Users.php" hash="aee610ed1f056a3f024c3c30e6c92f13"/></dir><file name="UpdateTicket.php" hash="074fa76c1bbe0620b978d9c522da21c9"/></dir><file name="SirportlyTickets.php" hash="0258475df4adf2bfd750d0815c7fc558"/></dir></dir></dir></dir></dir><file name="DataFrame.php" hash="13128a58407a933e2d3e8093ade30f1c"/><file name="Orders.php" hash="ce9fa1572d887d76a2b8c56101da4b8d"/><dir name="Permissions"><dir name="User"><dir name="Edit"><file name="AdminhtmlTabs.php" hash="b4ff2343bfcc9f0a0c23bc00b6907dcc"/><dir name="Tab"><file name="Sirportly.php" hash="7962c4aaaf22b2bc7af482c39ee058f8"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="OrdersController.php" hash="499e14d8376394645a1b94d615d7df0e"/><dir name="Sales"><file name="OrderController.php" hash="df9f32c2cf4c72807866e1413aa1c1ed"/></dir><file name="TicketController.php" hash="c3e74986c4d7c79a02a0a8df2564e174"/></dir><dir name="etc"><file name="adminhtml.xml" hash="31ce0056778c58c2430b0b2cccb9b1a5"/><file name="config.xml" hash="dd590c3b433119e5b6af9edbeacfd62d"/><file name="system.xml" hash="9e025729a626a2fb00eb3a2b77815645"/></dir><dir name="Helper"><file name="CheckoutData.php" hash="08531cf50917af39a587802e3876a5f3"/><file name="Data.php" hash="8567dd97865170fde4c2858d0201e49f"/></dir><dir name="Model"><file name="Observer.php" hash="a14e57ea58ba025f62483efd650b55fa"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Department"><file name="Contact.php" hash="681e7d40a46fec9fc43690b298fc18d6"/><file name="OrderScreen.php" hash="8366770dddb56bbeaf601ed9dc5ba8d5"/><file name="PaymentFailed.php" hash="3b575ab12bb25c32aec4c62fef6febcd"/></dir><file name="Department.php" hash="f8a708f2e042365bd892bfd1f392fec3"/><dir name="Priority"><file name="Contact.php" hash="3415f060eac9c459afc1b0cef7b0a028"/><file name="OrderScreen.php" hash="bba6bc6ce4a79e95feb1470ea7455665"/><file name="PaymentFailed.php" hash="9b251fc35bc2bbc3299a8c1cfc8109c7"/></dir><file name="Priority.php" hash="682065ee3cdcab991e5fd252730c8640"/><dir name="Sla"><file name="OrderScreen.php" hash="1c3dd6fcca20564d2b6f869c723fc936"/></dir><dir name="Status"><file name="Contact.php" hash="47d7f3976f25eff30a2ef816a6682e26"/><file name="OrderScreen.php" hash="f29f5c9314e4e26fbabced9573c2e822"/><file name="PaymentFailed.php" hash="8d625f92c1b5c5119017443b5ad42ff4"/></dir><file name="Status.php" hash="60fd06d1743463ad345afa2cb1827e9d"/><dir name="Team"><file name="Contact.php" hash="d851dd72b7278cf1b755c8bfba869bcc"/><file name="OrderScreen.php" hash="6fdf9a9fe1ab6b6ff3124763012d0845"/><file name="PaymentFailed.php" hash="a54aff316e6f9357c7bc8c1e283cf306"/></dir><file name="Team.php" hash="1b1fc5cfb6c50a74a57aba2252f43874"/></dir></dir></dir></dir><dir name="sql"><dir name="sirportly_setup"><file name="mysql4-upgrade-1.1.0-1.2.0.php" hash="d6e621d7c0bbc250d42637fcc96749c5"/><file name="mysql4-upgrade-1.2.0-1.2.1.php" hash="b936b0b9063cf18faa50cfea6b29ffad"/></dir></dir></dir><dir name="Common"><dir name="etc"><file name="system.xml" hash="6c9ba9f227b9adfc9abf97f17b46fdbf"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="HusseyCoding_Sirportly.xml" hash="a92236145783da6931bf04a2028ae285"/><file name="HusseyCoding_Common.xml" hash="31e82d3d9b3179c2fa9e002f9669da47"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="sirportly.xml" hash="7b147117e44fef6266835d00e0ccd4c0"/></dir><dir name="template"><dir name="sirportly"><file name="contact.phtml" hash="6ccfad5b873caa4801fbc8196ec23ee8"/><file name="orders.phtml" hash="b6f30008794992ca25b6e2e6061f676c"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="sirportly.xml" hash="2b317b7f700972dbbc5dd514b2d1c57d"/></dir><dir name="template"><dir name="sirportly"><file name="dataframe.phtml" hash="63ac83154f3d6c5fe69c4e48cff78099"/><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="sirportlytickets"><dir name="newticket"><file name="teams.phtml" hash="ee72d305c9a0f2a1c24b9cd170b647f3"/><file name="users.phtml" hash="c7517e0a90187ecda3d6283b20cb35f5"/></dir><file name="newticket.phtml" hash="154b6063eee86a3f81e9f2d2260476c2"/><dir name="reassignticket"><file name="teams.phtml" hash="ee72d305c9a0f2a1c24b9cd170b647f3"/><file name="users.phtml" hash="c7517e0a90187ecda3d6283b20cb35f5"/></dir><file name="reassignticket.phtml" hash="be508dc8e0cab5cde8af3ed3ca4d3478"/><dir name="updateticket"><file name="responses.phtml" hash="5728d3cc7ac676b23fab4009d5c69eb3"/><file name="teams.phtml" hash="ee72d305c9a0f2a1c24b9cd170b647f3"/><file name="users.phtml" hash="c7517e0a90187ecda3d6283b20cb35f5"/></dir><file name="updateticket.phtml" hash="d5cb94378bedc6b6c85d765c3de1fe71"/></dir><file name="sirportlytickets.phtml" hash="18699fd5f0ec829f1e9198783375602e"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="sirportlysubmit.js" hash="879ecd9e6065fb6dc062d5af452d0832"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="sirportly"><dir name="css"><file name="ordertickets.css" hash="c67409ea88574c5213fa0885fba6dab6"/></dir><dir name="js"><file name="dataframe.js" hash="79c43f14af5262e264ae51847751ae85"/><file name="livepipe.js" hash="417ba064736fed2772778641f66555c0"/><file name="ordertickets.js" hash="66e78fc30ae7e40141474b8502446b8d"/><file name="window.js" hash="f6eba488d6a80e05f59d97a0cef59730"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/adminhtml/default/default/sirportly/js/dataframe.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ var dataframe = Class.create({
2
+ afterInit: function() {
3
+ $("row_sirportly_general_key").insert({ before: '<tr><td class="label">Data Frame URL</td><td class="value"><strong>' + this.url + '</strong><p class="note"><span>Use this URL when creating the data frame in Sirportly.</span></p></td></tr>' });
4
+ }
5
+ });
6
+
7
+ document.observe("dom:loaded", function() {
8
+ if (typeof(thisdataframe) == "object" && $("sirportly_general_key")) {
9
+ thisdataframe.afterInit();
10
+ }
11
+ });