Craig_Tco - Version 2.4.2

Version Notes

IE8 JS fixes

Download this release

Release Info

Developer Craig Christenson
Extension Craig_Tco
Version 2.4.2
Comparing to
See all releases


Code changes from version 2.4.1 to 2.4.2

app/code/local/Craig/Tco/Block/Redirect.php CHANGED
@@ -40,22 +40,8 @@ class Craig_Tco_Block_Redirect extends Mage_Core_Block_Abstract
40
  $form->addField('tcosubmit', 'submit', array('name'=>'tcosubmit'));
41
 
42
  $html = '<style> #tcosubmit {display:none;} </style>';
 
43
 
44
- if ($tco->getDisplay()) {
45
- //inline mode
46
- $html .= $form->toHtml();
47
- $html.= '<script type="text/javascript">function formSubmit(){ document.getElementById("tcopay").submit();}
48
- window.onload=function(){
49
- formSubmit();
50
- };</script>';
51
- } else {
52
- //dynamic mode
53
- $html .= $form->toHtml();
54
- $html.= '<script type="text/javascript">function formSubmit(){ document.getElementById("tcopay").submit();}
55
- window.onload=function(){
56
- formSubmit();
57
- };</script>';
58
- }
59
  return $html;
60
  }
61
  }
40
  $form->addField('tcosubmit', 'submit', array('name'=>'tcosubmit'));
41
 
42
  $html = '<style> #tcosubmit {display:none;} </style>';
43
+ $html .= $form->toHtml();
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  return $html;
46
  }
47
  }
app/code/local/Craig/Tco/Model/Observer.php CHANGED
@@ -79,7 +79,7 @@ class Craig_Tco_Model_Observer extends Mage_Core_Block_Abstract {
79
  tcohead.appendChild(tcoscript);
80
  var checkoutOrderBtn = $$("button.btn-checkout");
81
  checkoutOrderBtn[0].removeAttribute("onclick");
82
- checkoutOrderBtn[0].addEventListener("click", formSubmit, false);
83
  new PeriodicalExecuter(function(pe) {
84
  if (typeof window["inline_2Checkout"] != "undefined")
85
  {
@@ -102,7 +102,7 @@ class Craig_Tco_Model_Observer extends Mage_Core_Block_Abstract {
102
  }
103
  var checkoutOrderBtn = $$("button.btn-checkout");
104
  checkoutOrderBtn[0].removeAttribute("onclick");
105
- checkoutOrderBtn[0].addEventListener("click", formSubmit, false);
106
  formSubmit();
107
  </script>';
108
  }
79
  tcohead.appendChild(tcoscript);
80
  var checkoutOrderBtn = $$("button.btn-checkout");
81
  checkoutOrderBtn[0].removeAttribute("onclick");
82
+ checkoutOrderBtn[0].observe("click", formSubmit);
83
  new PeriodicalExecuter(function(pe) {
84
  if (typeof window["inline_2Checkout"] != "undefined")
85
  {
102
  }
103
  var checkoutOrderBtn = $$("button.btn-checkout");
104
  checkoutOrderBtn[0].removeAttribute("onclick");
105
+ checkoutOrderBtn[0].observe("click", formSubmit);
106
  formSubmit();
107
  </script>';
108
  }
app/code/local/Craig/Tco/etc/config.xml CHANGED
@@ -24,7 +24,7 @@
24
  <config>
25
  <modules>
26
  <Craig_Tco>
27
- <version>2.4.1</version>
28
  </Craig_Tco>
29
  </modules>
30
  <global>
24
  <config>
25
  <modules>
26
  <Craig_Tco>
27
+ <version>2.4.2</version>
28
  </Craig_Tco>
29
  </modules>
30
  <global>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Craig_Tco</name>
4
- <version>2.4.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>2Checkout Payment Extension</summary>
10
  <description>2Checkout Payment Module</description>
11
- <notes>Better Direct Checkout Integration</notes>
12
  <authors><author><name>Craig Christenson</name><user>Craig2Checkout</user><email>cchristenson@2checkout.com</email></author></authors>
13
- <date>2014-03-02</date>
14
- <time>04:12:34</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Craig_Tco.xml" hash="4a6e92678d9b2a310af880d35a4c355f"/></dir></target><target name="magelocal"><dir name="Craig"><dir name="Tco"><dir name="Block"><file name="Form.php" hash="b552018543f57090c42784d939004dd4"/><file name="Iframe.php" hash="c8a410448492f2722d8f9891d8470ef7"/><file name="Info.php" hash="ceb4ec03e4de3e4f1dafaf5d7da9b982"/><file name="Redirect.php" hash="3f74b079cdaa46bb2077ef23c4117e6f"/></dir><dir name="controllers"><file name="NotificationController.php" hash="5bf12db9cfc0719deea1f82dfe3fe1a2"/><file name="RedirectController.php" hash="116f9d6b3a5bf6386a00486ccfabdb63"/></dir><dir name="etc"><file name="config.xml" hash="5a64c520c709ee85bebf1fedb59fca7e"/><file name="system.xml" hash="8b8a49a75cd220f0ae7597d70c55f156"/></dir><dir name="Helper"><file name="Data.php" hash="de7680011db7d6821c1f68d70a8fa684"/></dir><dir name="Model"><file name="Checkout.php" hash="9471947098baeba75bc1a6c285e2842d"/><file name="Observer.php" hash="3e290d36a1623a768f6228ffad2d8fe3"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tco.xml" hash="674ab3912206c33400cefc358f07579f"/></dir><dir name="template"><dir name="tco"><file name="form.phtml" hash="08ae585e158550d0a5dccbed3d37758d"/><file name="iframe.phtml" hash="2191326835aeb340ad3e26f6acd4963f"/><file name="info.phtml" hash="b714a7398773adc71ea086024dfc96b1"/></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>
3
  <name>Craig_Tco</name>
4
+ <version>2.4.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>2Checkout Payment Extension</summary>
10
  <description>2Checkout Payment Module</description>
11
+ <notes>IE8 JS fixes</notes>
12
  <authors><author><name>Craig Christenson</name><user>Craig2Checkout</user><email>cchristenson@2checkout.com</email></author></authors>
13
+ <date>2014-03-03</date>
14
+ <time>01:24:04</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Craig_Tco.xml" hash="4a6e92678d9b2a310af880d35a4c355f"/></dir></target><target name="magelocal"><dir name="Craig"><dir name="Tco"><dir name="Block"><file name="Form.php" hash="b552018543f57090c42784d939004dd4"/><file name="Iframe.php" hash="c8a410448492f2722d8f9891d8470ef7"/><file name="Info.php" hash="ceb4ec03e4de3e4f1dafaf5d7da9b982"/><file name="Redirect.php" hash="3e14d21923564ffebbda371461904895"/></dir><dir name="controllers"><file name="NotificationController.php" hash="5bf12db9cfc0719deea1f82dfe3fe1a2"/><file name="RedirectController.php" hash="116f9d6b3a5bf6386a00486ccfabdb63"/></dir><dir name="etc"><file name="config.xml" hash="3cb52e548566867f2d975cca4d856efd"/><file name="system.xml" hash="8b8a49a75cd220f0ae7597d70c55f156"/></dir><dir name="Helper"><file name="Data.php" hash="de7680011db7d6821c1f68d70a8fa684"/></dir><dir name="Model"><file name="Checkout.php" hash="9471947098baeba75bc1a6c285e2842d"/><file name="Observer.php" hash="ec961a9b67110ae344d6a3fc0165748c"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tco.xml" hash="674ab3912206c33400cefc358f07579f"/></dir><dir name="template"><dir name="tco"><file name="form.phtml" hash="08ae585e158550d0a5dccbed3d37758d"/><file name="iframe.phtml" hash="2191326835aeb340ad3e26f6acd4963f"/><file name="info.phtml" hash="b714a7398773adc71ea086024dfc96b1"/></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>