Version Notes
Updated image urls
Download this release
Release Info
| Developer | Craig Christenson |
| Extension | Craig_Tco |
| Version | 2.3.3 |
| Comparing to | |
| See all releases | |
Code changes from version 2.3.1 to 2.3.3
app/code/local/Craig/Tco/Block/Redirect.php
CHANGED
|
@@ -45,22 +45,28 @@ class Craig_Tco_Block_Redirect extends Mage_Core_Block_Abstract
|
|
| 45 |
|
| 46 |
if ($tco->getDisplay()) {
|
| 47 |
//inline mode
|
| 48 |
-
$html .= '<p style=text-align:center;><img style=text-align:center;cursor:pointer src="https://www.2checkout.com/
|
| 49 |
'<p style=text-align:center;>'.$tco->getRedirectMessage().'</p><br />'.
|
| 50 |
-
'<p style=text-align:center;><img style=text-align:center;cursor:pointer src="https://www.2checkout.com/
|
| 51 |
$form->toHtml();
|
| 52 |
$html.= '<script type="text/javascript" src="https://www.2checkout.com/static/checkout/javascript/direct.min.js"></script>';
|
| 53 |
-
$html.= '
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
} else {
|
| 60 |
//dynamic mode
|
| 61 |
-
$html .= '<p style=text-align:center;><img style=text-align:center;cursor:pointer src="https://www.2checkout.com/
|
| 62 |
'<p style=text-align:center;>'.$tco->getRedirectMessage().'</p><br />'.
|
| 63 |
-
'<p style=text-align:center;><img style=text-align:center;cursor:pointer src="https://www.2checkout.com/
|
| 64 |
$form->toHtml();
|
| 65 |
$html.= '<script type="text/javascript">function formSubmit(){ document.getElementById("pay").submit();}
|
| 66 |
window.onload=function(){
|
| 45 |
|
| 46 |
if ($tco->getDisplay()) {
|
| 47 |
//inline mode
|
| 48 |
+
$html .= '<p style=text-align:center;><img style=text-align:center;cursor:pointer src="https://www.2checkout.com/upload/images/logo.png" onclick="formSubmit();" /></p><br />'.
|
| 49 |
'<p style=text-align:center;>'.$tco->getRedirectMessage().'</p><br />'.
|
| 50 |
+
'<p style=text-align:center;><img style=text-align:center;cursor:pointer src="https://www.2checkout.com/upload/images/paymentlogoshorizontal.png" onclick="formSubmit();" /></p><br />'.
|
| 51 |
$form->toHtml();
|
| 52 |
$html.= '<script type="text/javascript" src="https://www.2checkout.com/static/checkout/javascript/direct.min.js"></script>';
|
| 53 |
+
$html.= '
|
| 54 |
+
<script type="text/javascript">
|
| 55 |
+
function formSubmit(){
|
| 56 |
+
document.getElementById("pay").submit();
|
| 57 |
+
var elem = document.getElementById("tco_lightbox");
|
| 58 |
+
elem.style.display = "block";
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
window.onload=function(){
|
| 62 |
+
formSubmit();
|
| 63 |
+
};
|
| 64 |
+
</script>';
|
| 65 |
} else {
|
| 66 |
//dynamic mode
|
| 67 |
+
$html .= '<p style=text-align:center;><img style=text-align:center;cursor:pointer src="https://www.2checkout.com/upload/images/logo.png" onclick="document.location.reload()" /></p><br />'.
|
| 68 |
'<p style=text-align:center;>'.$tco->getRedirectMessage().'</p><br />'.
|
| 69 |
+
'<p style=text-align:center;><img style=text-align:center;cursor:pointer src="https://www.2checkout.com/upload/images/paymentlogoshorizontal.png" onclick="document.location.reload()" /></p><br />'.
|
| 70 |
$form->toHtml();
|
| 71 |
$html.= '<script type="text/javascript">function formSubmit(){ document.getElementById("pay").submit();}
|
| 72 |
window.onload=function(){
|
app/code/local/Craig/Tco/etc/config.xml
CHANGED
|
@@ -24,7 +24,7 @@
|
|
| 24 |
<config>
|
| 25 |
<modules>
|
| 26 |
<Craig_Tco>
|
| 27 |
-
<version>2.3.
|
| 28 |
</Craig_Tco>
|
| 29 |
</modules>
|
| 30 |
<global>
|
| 24 |
<config>
|
| 25 |
<modules>
|
| 26 |
<Craig_Tco>
|
| 27 |
+
<version>2.3.3</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.3.
|
| 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
|
| 11 |
-
<notes>
|
| 12 |
-
<authors><author><name>Craig Christenson</name><user>
|
| 13 |
-
<date>2013-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Craig_Tco.xml" hash="4a6e92678d9b2a310af880d35a4c355f"/></dir></target><target name="
|
| 16 |
<compatible/>
|
| 17 |
-
<dependencies
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Craig_Tco</name>
|
| 4 |
+
<version>2.3.3</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 Extension</description>
|
| 11 |
+
<notes>Updated image urls</notes>
|
| 12 |
+
<authors><author><name>Craig Christenson</name><user>Craig2Checkout</user><email>cchristenson@2co.com</email></author></authors>
|
| 13 |
+
<date>2013-10-01</date>
|
| 14 |
+
<time>16:41:39</time>
|
| 15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Craig_Tco.xml" hash="4a6e92678d9b2a310af880d35a4c355f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="tco"><file name="form.phtml" hash="08ae585e158550d0a5dccbed3d37758d"/><file name="info.phtml" hash="b714a7398773adc71ea086024dfc96b1"/></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Craig"><dir name="Tco"><dir name="Block"><file name="Form.php" hash="b552018543f57090c42784d939004dd4"/><file name="Info.php" hash="ceb4ec03e4de3e4f1dafaf5d7da9b982"/><file name="Redirect.php" hash="1b98352eef4b85d367512cbe9b14fcca"/></dir><dir name="controllers"><file name="NotificationController.php" hash="5bf12db9cfc0719deea1f82dfe3fe1a2"/><file name="RedirectController.php" hash="234c09971716a837f84e459a7d15199f"/></dir><dir name="Model"><file name="Checkout.php" hash="abc306412071808aaa015f0198efc4fb"/><file name="Observer.php" hash="c24b10be82be173a91cd6b53a0cbbd18"/></dir><dir name="Helper"><file name="Data.php" hash="de7680011db7d6821c1f68d70a8fa684"/></dir><dir name="etc"><file name="config.xml" hash="1a8c3472752aebf282b31e991e46d004"/><file name="system.xml" hash="8b8a49a75cd220f0ae7597d70c55f156"/></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>
|
