HusseyCoding_Sirportly - Version 1.0.4

Version Notes

Checked 1.8.1.0 CE compatibility, fixed contact form ticket creation when using store code in URL's

Download this release

Release Info

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


Code changes from version 1.0.3 to 1.0.4

app/code/community/HusseyCoding/Sirportly/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <HusseyCoding_Sirportly>
5
- <version>1.0.3</version>
6
  </HusseyCoding_Sirportly>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <HusseyCoding_Sirportly>
5
+ <version>1.0.4</version>
6
  </HusseyCoding_Sirportly>
7
  </modules>
8
  <global>
app/design/frontend/base/default/template/sirportly/contact.phtml CHANGED
@@ -2,6 +2,7 @@
2
  <script type="text/javascript">
3
  //<![CDATA[
4
  var thissirportlysubmit = new sirportlysubmit();
 
5
  //]]>
6
  </script>
7
  <?php endif; ?>
2
  <script type="text/javascript">
3
  //<![CDATA[
4
  var thissirportlysubmit = new sirportlysubmit();
5
+ thissirportlysubmit.ticketurl = "<?php echo $this->getUrl('sirportly/ticket/create'); ?>";
6
  //]]>
7
  </script>
8
  <?php endif; ?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HusseyCoding_Sirportly</name>
4
- <version>1.0.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>Create Sirportly helpdesk tickets via the Magento contact form, and when payments fail. Also view customer tickets on the admin order view page.</description>
11
- <notes>Added tickets tab to order view page</notes>
12
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
13
- <date>2013-10-17</date>
14
- <time>08:23:04</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"><file name="SirportlyTickets.php" hash="9a4bdbc45f0b1fe4fbd8de88db5bbb1a"/></dir></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Sales"><file name="OrderController.php" hash="4fdf8bd73ce40473934063ec68207328"/></dir><file name="TicketController.php" hash="c3e74986c4d7c79a02a0a8df2564e174"/></dir><dir name="etc"><file name="adminhtml.xml" hash="31ce0056778c58c2430b0b2cccb9b1a5"/><file name="config.xml" hash="8b63b53e615be2544a3eb207d013c9da"/><file name="system.xml" hash="af6f7f8ac461ac21ada683270f124ad9"/></dir><dir name="Helper"><file name="CheckoutData.php" hash="08531cf50917af39a587802e3876a5f3"/><file name="Data.php" hash="f1eed8b19d4b368faf1021d6be35dc5a"/></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"/></dir><file name="Department.php" hash="f8a708f2e042365bd892bfd1f392fec3"/><dir name="Priority"><file name="Contact.php" hash="3415f060eac9c459afc1b0cef7b0a028"/></dir><file name="Priority.php" hash="682065ee3cdcab991e5fd252730c8640"/><dir name="Status"><file name="Contact.php" hash="47d7f3976f25eff30a2ef816a6682e26"/></dir><file name="Status.php" hash="60fd06d1743463ad345afa2cb1827e9d"/><dir name="Team"><file name="Contact.php" hash="d851dd72b7278cf1b755c8bfba869bcc"/></dir><file name="Team.php" hash="1b1fc5cfb6c50a74a57aba2252f43874"/></dir></dir></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="4225d9efe951991fb3a21a276be0f6c7"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="sirportly.xml" hash="9a18dd5ee50b5fcefd4fcd0d8429df82"/></dir><dir name="template"><dir name="sirportly"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><file name="sirportlytickets.phtml" hash="5cb478d71bc9c8a086372725f815ccc2"/></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="d6a80d54715f19ff7811a6d9d69daa9a"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="sirportly"><dir name="css"><file name="ordertickets.css" hash="4cb89484b761ab95958207f29cc1e689"/></dir><dir name="js"><file name="ordertickets.js" hash="d040a67d7bb5e9b0f69a1b85c56be2e4"/></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.0.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 integration.</summary>
10
  <description>Create Sirportly helpdesk tickets via the Magento contact form, and when payments fail. Also view customer tickets on the admin order view page.</description>
11
+ <notes>Checked 1.8.1.0 CE compatibility, fixed contact form ticket creation when using store code in URL's</notes>
12
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
13
+ <date>2013-12-18</date>
14
+ <time>13:32: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"><file name="SirportlyTickets.php" hash="9a4bdbc45f0b1fe4fbd8de88db5bbb1a"/></dir></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Sales"><file name="OrderController.php" hash="4fdf8bd73ce40473934063ec68207328"/></dir><file name="TicketController.php" hash="c3e74986c4d7c79a02a0a8df2564e174"/></dir><dir name="etc"><file name="adminhtml.xml" hash="31ce0056778c58c2430b0b2cccb9b1a5"/><file name="config.xml" hash="54ef89e676c474e6fc85f4f3ec0a501d"/><file name="system.xml" hash="af6f7f8ac461ac21ada683270f124ad9"/></dir><dir name="Helper"><file name="CheckoutData.php" hash="08531cf50917af39a587802e3876a5f3"/><file name="Data.php" hash="f1eed8b19d4b368faf1021d6be35dc5a"/></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"/></dir><file name="Department.php" hash="f8a708f2e042365bd892bfd1f392fec3"/><dir name="Priority"><file name="Contact.php" hash="3415f060eac9c459afc1b0cef7b0a028"/></dir><file name="Priority.php" hash="682065ee3cdcab991e5fd252730c8640"/><dir name="Status"><file name="Contact.php" hash="47d7f3976f25eff30a2ef816a6682e26"/></dir><file name="Status.php" hash="60fd06d1743463ad345afa2cb1827e9d"/><dir name="Team"><file name="Contact.php" hash="d851dd72b7278cf1b755c8bfba869bcc"/></dir><file name="Team.php" hash="1b1fc5cfb6c50a74a57aba2252f43874"/></dir></dir></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="9a18dd5ee50b5fcefd4fcd0d8429df82"/></dir><dir name="template"><dir name="sirportly"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><file name="sirportlytickets.phtml" hash="5cb478d71bc9c8a086372725f815ccc2"/></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="4cb89484b761ab95958207f29cc1e689"/></dir><dir name="js"><file name="ordertickets.js" hash="d040a67d7bb5e9b0f69a1b85c56be2e4"/></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/frontend/base/default/js/sirportlysubmit.js CHANGED
@@ -8,7 +8,7 @@ var sirportlysubmit = Class.create({
8
  if (contactForm.validator && contactForm.validator.validate()) {
9
  this.disableButton();
10
  var parameters = this.form.serialize(true);
11
- new Ajax.Request("/sirportly/ticket/create", {
12
  parameters: parameters,
13
  onSuccess: function(response) {
14
  var contentarray = response.responseText.evalJSON();
8
  if (contactForm.validator && contactForm.validator.validate()) {
9
  this.disableButton();
10
  var parameters = this.form.serialize(true);
11
+ new Ajax.Request(this.ticketurl, {
12
  parameters: parameters,
13
  onSuccess: function(response) {
14
  var contentarray = response.responseText.evalJSON();