HusseyCoding_Sirportly - Version 1.2.4

Version Notes

Added dataframe date and product link formatting

Download this release

Release Info

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


Code changes from version 1.2.3 to 1.2.4

app/code/community/HusseyCoding/Sirportly/Block/Adminhtml/Sales/Order/View/Tab/SirportlyTickets.php CHANGED
@@ -45,7 +45,7 @@ class HusseyCoding_Sirportly_Block_Adminhtml_Sales_Order_View_Tab_SirportlyTicke
45
 
46
  public function getTabUrl()
47
  {
48
- return $this->getUrl('sirportly/sales_order/sirportlyTickets', array('_current' => true));
49
  }
50
 
51
  public function canShowTab()
45
 
46
  public function getTabUrl()
47
  {
48
+ return $this->getUrl('adminhtml/sales_order/sirportlyTickets', array('_current' => true));
49
  }
50
 
51
  public function canShowTab()
app/code/community/HusseyCoding/Sirportly/Block/Orders.php CHANGED
@@ -15,7 +15,8 @@ class HusseyCoding_Sirportly_Block_Orders extends Mage_Core_Block_Template
15
  'url' => $this->_getOrderUrl($order->getId()),
16
  'date' => $this->_getDate($order->getCreatedAt()),
17
  'time' => $this->_getTime($order->getCreatedAt()),
18
- 'status' => $order->getStatus(),
 
19
  'items' => $this->_getOrderItemsData($order),
20
  'total' => $this->_formatPrice($order->getBaseGrandTotal()),
21
  'shipping' => $order->getShippingDescription(),
@@ -110,6 +111,27 @@ class HusseyCoding_Sirportly_Block_Orders extends Mage_Core_Block_Template
110
  return false;
111
  }
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  private function _getOrderItemsData(Mage_Sales_Model_Order $order)
114
  {
115
  $return = array();
@@ -117,6 +139,7 @@ class HusseyCoding_Sirportly_Block_Orders extends Mage_Core_Block_Template
117
  foreach ($order->getAllItems() as $item):
118
  $return[$item->getId()] = array(
119
  'sku' => $item->getSku(),
 
120
  'quantity' => (float) $item->getQtyOrdered(),
121
  'url' => $this->_getItemUrl($item->getProductId())
122
  );
@@ -132,6 +155,13 @@ class HusseyCoding_Sirportly_Block_Orders extends Mage_Core_Block_Template
132
 
133
  private function _getItemUrl($id)
134
  {
 
 
 
 
 
 
 
135
  return Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/edit', array('id' => $id));
136
  }
137
 
@@ -156,4 +186,52 @@ class HusseyCoding_Sirportly_Block_Orders extends Mage_Core_Block_Template
156
 
157
  return false;
158
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  }
15
  'url' => $this->_getOrderUrl($order->getId()),
16
  'date' => $this->_getDate($order->getCreatedAt()),
17
  'time' => $this->_getTime($order->getCreatedAt()),
18
+ 'customdate' => $this->_getCustomDate($order->getCreatedAt()),
19
+ 'status' => $this->_getStatus($order),
20
  'items' => $this->_getOrderItemsData($order),
21
  'total' => $this->_formatPrice($order->getBaseGrandTotal()),
22
  'shipping' => $order->getShippingDescription(),
111
  return false;
112
  }
113
 
114
+ private function _getCustomDate($timestamp)
115
+ {
116
+ if ($format = Mage::getStoreConfig('sirportly/general/customdate')):
117
+ if ($epoch = strtotime($timestamp)):
118
+ if ($time = @date($format, $epoch)):
119
+ return $time;
120
+ endif;
121
+ endif;
122
+ endif;
123
+
124
+ return false;
125
+ }
126
+
127
+ private function _getStatus($order)
128
+ {
129
+ $status = $order->getStatus();
130
+ $status = Mage::getModel('sales/order_status')->load($status);
131
+
132
+ return $status->getLabel();
133
+ }
134
+
135
  private function _getOrderItemsData(Mage_Sales_Model_Order $order)
136
  {
137
  $return = array();
139
  foreach ($order->getAllItems() as $item):
140
  $return[$item->getId()] = array(
141
  'sku' => $item->getSku(),
142
+ 'name' => $this->_getProductName($item->getProductId()),
143
  'quantity' => (float) $item->getQtyOrdered(),
144
  'url' => $this->_getItemUrl($item->getProductId())
145
  );
155
 
156
  private function _getItemUrl($id)
157
  {
158
+ if ((int) Mage::getStoreConfig('sirportly/general/productlinks')):
159
+ $product = Mage::getModel('catalog/product')->load($id);
160
+ if ($product->getId()):
161
+ return $product->getProductUrl(false);
162
+ endif;
163
+ endif;
164
+
165
  return Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/edit', array('id' => $id));
166
  }
167
 
186
 
187
  return false;
188
  }
189
+
190
+ public function getTimestamp($order)
191
+ {
192
+ if ((int) Mage::getStoreConfig('sirportly/general/dateformat') && $order['customdate']):
193
+ return $order['customdate'];
194
+ endif;
195
+
196
+ return 'On ' . $order['date'] . ' at ' . $order['time'];
197
+ }
198
+
199
+ public function _getProductName($id)
200
+ {
201
+ $product = Mage::getModel('catalog/product')->load($id);
202
+ if ($product->getId()):
203
+ $name = $product->getName();
204
+ $type = $product->getTypeInstance();
205
+ if (!$type->getChildrenIds($product->getId(), false)):
206
+ $found = false;
207
+ $type = Mage::getModel('catalog/product_type_grouped');
208
+ foreach ($type->getParentIdsByChild($product->getId()) as $parentid):
209
+ $name = Mage::getModel('catalog/product')->load((int) $parentid)->getName();
210
+ $found = true;
211
+ break;
212
+ endforeach;
213
+
214
+ if (!$found):
215
+ $type = Mage::getModel('catalog/product_type_configurable');
216
+ foreach ($type->getParentIdsByChild($product->getId()) as $parentid):
217
+ $name = Mage::getModel('catalog/product')->load((int) $parentid)->getName();
218
+ $found = true;
219
+ break;
220
+ endforeach;
221
+ endif;
222
+
223
+ if (!$found):
224
+ $type = Mage::getModel('bundle/product_type');
225
+ foreach ($type->getParentIdsByChild($product->getId()) as $parentid):
226
+ $name = Mage::getModel('catalog/product')->load((int) $parentid)->getName();
227
+ break;
228
+ endforeach;
229
+ endif;
230
+ endif;
231
+
232
+ return $name;
233
+ endif;
234
+
235
+ return '';
236
+ }
237
  }
app/code/community/HusseyCoding/Sirportly/Model/System/Config/Source/Date.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class HusseyCoding_Sirportly_Model_System_Config_Source_Date
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value' => 0, 'label' => Mage::helper('sirportly')->__('Match Sirportly')),
8
+ array('value' => 1, 'label' => Mage::helper('sirportly')->__('Custom'))
9
+ );
10
+ }
11
+ }
app/code/community/HusseyCoding/Sirportly/Model/System/Config/Source/Links.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class HusseyCoding_Sirportly_Model_System_Config_Source_Links
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value' => 0, 'label' => Mage::helper('sirportly')->__('Admin')),
8
+ array('value' => 1, 'label' => Mage::helper('sirportly')->__('Frontend'))
9
+ );
10
+ }
11
+ }
app/code/community/HusseyCoding/Sirportly/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <HusseyCoding_Sirportly>
5
- <version>1.2.3</version>
6
  </HusseyCoding_Sirportly>
7
  </modules>
8
  <global>
@@ -59,6 +59,9 @@
59
  </sirportly>
60
  </updates>
61
  </layout>
 
 
 
62
  </frontend>
63
  <adminhtml>
64
  <events>
@@ -81,13 +84,13 @@
81
  </adminhtml>
82
  <admin>
83
  <routers>
84
- <sirportly>
85
- <use>admin</use>
86
  <args>
87
- <module>HusseyCoding_Sirportly</module>
88
- <frontName>sirportly</frontName>
 
89
  </args>
90
- </sirportly>
91
  </routers>
92
  </admin>
93
  </config>
2
  <config>
3
  <modules>
4
  <HusseyCoding_Sirportly>
5
+ <version>1.2.4</version>
6
  </HusseyCoding_Sirportly>
7
  </modules>
8
  <global>
59
  </sirportly>
60
  </updates>
61
  </layout>
62
+ <secure_url>
63
+ <sirportly>/sirportly/orders</sirportly>
64
+ </secure_url>
65
  </frontend>
66
  <adminhtml>
67
  <events>
84
  </adminhtml>
85
  <admin>
86
  <routers>
87
+ <adminhtml>
 
88
  <args>
89
+ <modules>
90
+ <HusseyCoding_Sirportly before="Mage_Adminhtml">HusseyCoding_Sirportly</HusseyCoding_Sirportly>
91
+ </modules>
92
  </args>
93
+ </adminhtml>
94
  </routers>
95
  </admin>
96
  </config>
app/code/community/HusseyCoding/Sirportly/etc/system.xml CHANGED
@@ -65,6 +65,33 @@
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">
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
+ <dateformat>
69
+ <label>Data Frame Date Format</label>
70
+ <frontend_type>select</frontend_type>
71
+ <sort_order>3</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>0</show_in_website>
74
+ <show_in_store>0</show_in_store>
75
+ <source_model>sirportly/system_config_source_date</source_model>
76
+ </dateformat>
77
+ <customdate>
78
+ <label>Custom Date Format</label>
79
+ <frontend_type>text</frontend_type>
80
+ <sort_order>4</sort_order>
81
+ <show_in_default>1</show_in_default>
82
+ <show_in_website>0</show_in_website>
83
+ <show_in_store>0</show_in_store>
84
+ <comment><![CDATA[<p>Enter date in format accepted by the <a href="http://php.net/manual/en/function.date.php" target="_blank">PHP date function</a>.</p>]]></comment>
85
+ </customdate>
86
+ <productlinks>
87
+ <label>Data Frame Product Links Go To</label>
88
+ <frontend_type>select</frontend_type>
89
+ <sort_order>5</sort_order>
90
+ <show_in_default>1</show_in_default>
91
+ <show_in_website>0</show_in_website>
92
+ <show_in_store>0</show_in_store>
93
+ <source_model>sirportly/system_config_source_links</source_model>
94
+ </productlinks>
95
  </fields>
96
  </general>
97
  <ticketassign translate="label">
app/design/adminhtml/default/default/template/sirportly/sales/order/view/tab/sirportlytickets.phtml CHANGED
@@ -78,7 +78,7 @@
78
  </div>
79
  <?php if ($this->canCreate()): ?>
80
  <div id="sirportly-ticket-new-popup">
81
- <form id="sirportly-ticket-new-form" method="post" action="<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyNewTicket'); ?>">
82
  <div class="entry-edit">
83
  <div class="entry-edit-head">
84
  <h4>New ticket for <?php echo $this->getCustomerName(); ?> (<?php echo $this->getCustomerEmail(); ?>)</h4>
@@ -94,13 +94,13 @@
94
  <script type="text/javascript">
95
  //<![CDATA[
96
  var thisordertickets = new ordertickets();
97
- thisordertickets.updateurl = "<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyUpdates'); ?>";
98
- thisordertickets.usersurl = "<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyUsers'); ?>";
99
- thisordertickets.teamsurl = "<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyTeams'); ?>";
100
- thisordertickets.submitnewurl = "<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyNewTicket'); ?>";
101
- thisordertickets.submitupdateurl = "<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyUpdateTicket'); ?>";
102
- thisordertickets.deleteupdateurl = "<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyDeleteUpdate'); ?>";
103
- thisordertickets.reassignurl = "<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyReassignTicket'); ?>";
104
  thisordertickets.orderid = "<?php echo Mage::registry('current_order')->getId(); ?>";
105
  thisordertickets.afterInit();
106
  //]]>
78
  </div>
79
  <?php if ($this->canCreate()): ?>
80
  <div id="sirportly-ticket-new-popup">
81
+ <form id="sirportly-ticket-new-form" method="post" action="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyNewTicket'); ?>">
82
  <div class="entry-edit">
83
  <div class="entry-edit-head">
84
  <h4>New ticket for <?php echo $this->getCustomerName(); ?> (<?php echo $this->getCustomerEmail(); ?>)</h4>
94
  <script type="text/javascript">
95
  //<![CDATA[
96
  var thisordertickets = new ordertickets();
97
+ thisordertickets.updateurl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyUpdates'); ?>";
98
+ thisordertickets.usersurl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyUsers'); ?>";
99
+ thisordertickets.teamsurl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyTeams'); ?>";
100
+ thisordertickets.submitnewurl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyNewTicket'); ?>";
101
+ thisordertickets.submitupdateurl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyUpdateTicket'); ?>";
102
+ thisordertickets.deleteupdateurl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyDeleteUpdate'); ?>";
103
+ thisordertickets.reassignurl = "<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyReassignTicket'); ?>";
104
  thisordertickets.orderid = "<?php echo Mage::registry('current_order')->getId(); ?>";
105
  thisordertickets.afterInit();
106
  //]]>
app/design/adminhtml/default/default/template/sirportly/sales/order/view/tab/sirportlytickets/reassignticket.phtml CHANGED
@@ -1,6 +1,6 @@
1
  <?php if ($this->canUpdate()): ?>
2
  <div id="sirportly-ticket-reassign-popup-<?php echo $this->getReference(); ?>" class="sirportly-ticket-reassign-popup">
3
- <form id="sirportly-ticket-reassign-form-<?php echo $this->getReference(); ?>" method="post" action="<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyUpdateTicket'); ?>">
4
  <div class="entry-edit">
5
  <div class="entry-edit-head">
6
  <h4>Reassign ticket "<?php echo $this->getSubject(); ?>"</h4>
1
  <?php if ($this->canUpdate()): ?>
2
  <div id="sirportly-ticket-reassign-popup-<?php echo $this->getReference(); ?>" class="sirportly-ticket-reassign-popup">
3
+ <form id="sirportly-ticket-reassign-form-<?php echo $this->getReference(); ?>" method="post" action="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyUpdateTicket'); ?>">
4
  <div class="entry-edit">
5
  <div class="entry-edit-head">
6
  <h4>Reassign ticket "<?php echo $this->getSubject(); ?>"</h4>
app/design/adminhtml/default/default/template/sirportly/sales/order/view/tab/sirportlytickets/updateticket.phtml CHANGED
@@ -1,6 +1,6 @@
1
  <?php if ($this->canUpdate()): ?>
2
  <div id="sirportly-ticket-update-popup-<?php echo $this->getReference(); ?>" class="sirportly-ticket-update-popup">
3
- <form id="sirportly-ticket-update-form-<?php echo $this->getReference(); ?>" method="post" action="<?php echo Mage::helper('adminhtml')->getUrl('sirportly/sales_order/sirportlyUpdateTicket'); ?>">
4
  <div class="entry-edit">
5
  <div class="entry-edit-head">
6
  <h4>Ticket update for "<?php echo $this->getSubject(); ?>"</h4>
1
  <?php if ($this->canUpdate()): ?>
2
  <div id="sirportly-ticket-update-popup-<?php echo $this->getReference(); ?>" class="sirportly-ticket-update-popup">
3
+ <form id="sirportly-ticket-update-form-<?php echo $this->getReference(); ?>" method="post" action="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/sirportlyUpdateTicket'); ?>">
4
  <div class="entry-edit">
5
  <div class="entry-edit-head">
6
  <h4>Ticket update for "<?php echo $this->getSubject(); ?>"</h4>
app/design/frontend/base/default/template/sirportly/orders.phtml CHANGED
@@ -17,13 +17,13 @@
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>
17
  <td>
18
  <a href="<?php echo $order['url']; ?>" target="_blank"><?php echo $order['number']; ?></a>
19
  </td>
20
+ <td><?php echo $this->getTimestamp($order); ?></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['name'] . ' (' . $item['sku'] . ')'; ?></a>
27
  </div>
28
  <?php endforeach; ?>
29
  </td>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HusseyCoding_Sirportly</name>
4
- <version>1.2.3</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 data frame support for guest orders, updated data frame styling to match new sirportly look.</notes>
12
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
13
- <date>2014-08-22</date>
14
- <time>10:13:15</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="01ed6d1e748f8dfef37cdc1c9d3a12e7"/><dir name="Permissions"><dir name="User"><dir name="Edit"><file name="AdminhtmlTabs.php" hash="b4ff2343bfcc9f0a0c23bc00b6907dcc"/><dir name="Tab"><file name="Sirportly.php" hash="b7f7cc6ec5117d19e1fc20a890f02aad"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="OrdersController.php" hash="402142d10e03664ef6dc75e11a163ddf"/><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="50a2566b02ec798b6224e9c394c3fde8"/><file name="system.xml" hash="9e025729a626a2fb00eb3a2b77815645"/></dir><dir name="Helper"><file name="CheckoutData.php" hash="eca4b2e3bf850f0f2fff1721a9dea493"/><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="e3db8948df6ac6641cd4820c5a3500ec"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HusseyCoding_Sirportly</name>
4
+ <version>1.2.4</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 ticketing integration.</summary>
10
+ <description>Manage Sirportly ticketing directly from the admin sales page. Create and update tickets, grant permissions to tickets to Magento users, create tickets via the contact form, and when payments fail. Also gives a dataframe URL to display order information in Sirportly.</description>
11
+ <notes>Added dataframe date and product link formatting</notes>
12
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
13
+ <date>2015-02-27</date>
14
+ <time>09:21:48</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="b90c33ef75bff17420389a57c345b210"/></dir></dir></dir></dir></dir><file name="DataFrame.php" hash="13128a58407a933e2d3e8093ade30f1c"/><file name="Orders.php" hash="68060a2aa93028544d055b720b7f3e91"/><dir name="Permissions"><dir name="User"><dir name="Edit"><file name="AdminhtmlTabs.php" hash="b4ff2343bfcc9f0a0c23bc00b6907dcc"/><dir name="Tab"><file name="Sirportly.php" hash="b7f7cc6ec5117d19e1fc20a890f02aad"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="OrdersController.php" hash="402142d10e03664ef6dc75e11a163ddf"/><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="e3a05f6f398481633f4c7d8e80b91097"/><file name="system.xml" hash="4b09303efb0f35bd6b7073813107b735"/></dir><dir name="Helper"><file name="CheckoutData.php" hash="eca4b2e3bf850f0f2fff1721a9dea493"/><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"><file name="Date.php" hash="593dc83a5c606a762c8b4feb217964a7"/><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"/><file name="Links.php" hash="21f0e2eb5b231179b55cd76204cc1035"/><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="6131f893334ae277c7c3c4c3f1a628d9"/></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="e7ec7da558d6fbff2b82320864c3dbac"/><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="ea4a209403ab419bc7dd4e93e2cc1455"/></dir><file name="sirportlytickets.phtml" hash="971d19841874f1faf128d0369dabfd9e"/></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="4f464c3c665eb6c74df0f099bee443d8"/><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 CHANGED
@@ -1,6 +1,20 @@
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
 
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
+ this.initCustomDate();
5
+ },
6
+ initCustomDate: function() {
7
+ this.setCustomDateVisibility();
8
+ $("sirportly_general_dateformat").observe("change", function(e) {
9
+ this.setCustomDateVisibility();
10
+ }.bind(this));
11
+ },
12
+ setCustomDateVisibility: function() {
13
+ if ($("sirportly_general_dateformat").value == 1) {
14
+ $("row_sirportly_general_customdate").show();
15
+ } else {
16
+ $("row_sirportly_general_customdate").hide();
17
+ }
18
  }
19
  });
20