Version Notes
Versão para magento 1.9
Download this release
Release Info
Developer | Lusopay |
Extension | Lusopay_LusopayGateway |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.1.0
- app/code/local/Magnimeios/Magnimeiosgateway/Model/GerarRef.php +7 -3
- app/design/adminhtml/default/default/template/magnimeiosgateway/info/info.phtml +2 -2
- app/design/adminhtml/default/default/template/magnimeiosgateway/info/pdf/info.phtml +2 -2
- app/design/frontend/base/default/template/magnimeiosgateway/form/form.phtml +2 -3
- app/design/frontend/base/default/template/magnimeiosgateway/info/info.phtml +3 -3
- package.xml +4 -4
- skin/frontend/base/default/images/magnimeiosgateway/logo.png +0 -0
app/code/local/Magnimeios/Magnimeiosgateway/Model/GerarRef.php
CHANGED
@@ -303,6 +303,7 @@ class Magnimeios_Magnimeiosgateway_Model_GerarRef extends Mage_Payment_Model_Met
|
|
303 |
|
304 |
public function getCheckout()
|
305 |
{
|
|
|
306 |
if(Mage::getSingleton('customer/session')->isLoggedIn())
|
307 |
{
|
308 |
//echo "entrou aqui";
|
@@ -310,11 +311,14 @@ class Magnimeios_Magnimeiosgateway_Model_GerarRef extends Mage_Payment_Model_Met
|
|
310 |
}else{
|
311 |
$this->_checkout = Mage::getSingleton('adminhtml/session_quote');
|
312 |
}
|
313 |
-
|
|
|
314 |
if (empty($this->_checkout)) {
|
315 |
$this->_checkout = Mage::getSingleton('checkout/session');
|
316 |
-
}
|
317 |
-
|
|
|
|
|
318 |
return $this->_checkout;
|
319 |
}
|
320 |
|
303 |
|
304 |
public function getCheckout()
|
305 |
{
|
306 |
+
/*
|
307 |
if(Mage::getSingleton('customer/session')->isLoggedIn())
|
308 |
{
|
309 |
//echo "entrou aqui";
|
311 |
}else{
|
312 |
$this->_checkout = Mage::getSingleton('adminhtml/session_quote');
|
313 |
}
|
314 |
+
*/
|
315 |
+
// Codigo antigo
|
316 |
if (empty($this->_checkout)) {
|
317 |
$this->_checkout = Mage::getSingleton('checkout/session');
|
318 |
+
}else{
|
319 |
+
$this->_checkout = Mage::getSingleton('adminhtml/session_quote');
|
320 |
+
}
|
321 |
+
|
322 |
return $this->_checkout;
|
323 |
}
|
324 |
|
app/design/adminhtml/default/default/template/magnimeiosgateway/info/info.phtml
CHANGED
@@ -45,7 +45,7 @@
|
|
45 |
<td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Multibanco (By LUSOPAY)</center></td>
|
46 |
</tr>
|
47 |
<tr>
|
48 |
-
<td rowspan="4"><div align="center"><img src="http://www.lusopay.
|
49 |
<td style="font-size: x-small; font-weight:bold; text-align:left">Entidade:</td>
|
50 |
<td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosEntidade()) ?></span></td>
|
51 |
</tr>
|
@@ -75,7 +75,7 @@
|
|
75 |
<td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Payshop (By LUSOPAY)</center></td>
|
76 |
</tr>
|
77 |
<tr>
|
78 |
-
<td rowspan="4"><div align="center"><img src="http://www.lusopay.
|
79 |
</tr>
|
80 |
<tr>
|
81 |
<td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
|
45 |
<td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Multibanco (By LUSOPAY)</center></td>
|
46 |
</tr>
|
47 |
<tr>
|
48 |
+
<td rowspan="4"><div align="center"><img src="http://www.lusopay.pt/imagens/modulos/Logo_Lusopay_MB125x80px.png" alt=""></div></td>
|
49 |
<td style="font-size: x-small; font-weight:bold; text-align:left">Entidade:</td>
|
50 |
<td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosEntidade()) ?></span></td>
|
51 |
</tr>
|
75 |
<td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Payshop (By LUSOPAY)</center></td>
|
76 |
</tr>
|
77 |
<tr>
|
78 |
+
<td rowspan="4"><div align="center"><img src="http://www.lusopay.pt/imagens/modulos/Logo_Lusopay_Payshop125x80px.png" alt=""></div></td>
|
79 |
</tr>
|
80 |
<tr>
|
81 |
<td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
|
app/design/adminhtml/default/default/template/magnimeiosgateway/info/pdf/info.phtml
CHANGED
@@ -41,7 +41,7 @@
|
|
41 |
<td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Multibanco (By LUSOPAY)</center></td>
|
42 |
</tr>
|
43 |
<tr>
|
44 |
-
<td rowspan="4"><div align="center"><img src="http://www.lusopay.
|
45 |
<td style="font-size: x-small; font-weight:bold; text-align:left">Entidade:</td>
|
46 |
<td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosEntidade()) ?></span></td>
|
47 |
</tr>
|
@@ -71,7 +71,7 @@
|
|
71 |
<td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Payshop (By LUSOPAY)</center></td>
|
72 |
</tr>
|
73 |
<tr>
|
74 |
-
<td rowspan="4"><div align="center"><img src="http://www.lusopay.
|
75 |
</tr>
|
76 |
<tr>
|
77 |
<td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
|
41 |
<td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Multibanco (By LUSOPAY)</center></td>
|
42 |
</tr>
|
43 |
<tr>
|
44 |
+
<td rowspan="4"><div align="center"><img src="http://www.lusopay.pt/imagens/modulos/Logo_Lusopay_MB125x80px.png" alt=""></div></td>
|
45 |
<td style="font-size: x-small; font-weight:bold; text-align:left">Entidade:</td>
|
46 |
<td style="font-size: x-small; text-align:left"><span><?php echo $this->htmlEscape($this->getInfo()->getMagnimeiosEntidade()) ?></span></td>
|
47 |
</tr>
|
71 |
<td style="font-size: x-small; border-bottom: 1px solid #DCDCDC; background-color: #DCDCDC; color: Black" colspan="3"><center>Pagamento por Payshop (By LUSOPAY)</center></td>
|
72 |
</tr>
|
73 |
<tr>
|
74 |
+
<td rowspan="4"><div align="center"><img src="http://www.lusopay.pt/imagens/modulos/Logo_Lusopay_Payshop125x80px.png" alt=""></div></td>
|
75 |
</tr>
|
76 |
<tr>
|
77 |
<td style="font-size: x-small; font-weight:bold; text-align:left">Referência:</td>
|
app/design/frontend/base/default/template/magnimeiosgateway/form/form.phtml
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
<fieldset class="form-list">
|
2 |
<ul id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display:none">
|
3 |
<li><img src="<?php echo $this->getSkinUrl('images/magnimeiosgateway/Logo_Lusopay_MBePayshop125x80px.png') ?>" border="0" /></li>
|
4 |
-
|
5 |
-
|
6 |
-
<?php endif; ?>
|
7 |
</ul>
|
8 |
</fieldset>
|
1 |
<fieldset class="form-list">
|
2 |
<ul id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display:none">
|
3 |
<li><img src="<?php echo $this->getSkinUrl('images/magnimeiosgateway/Logo_Lusopay_MBePayshop125x80px.png') ?>" border="0" /></li>
|
4 |
+
|
5 |
+
|
|
|
6 |
</ul>
|
7 |
</fieldset>
|
app/design/frontend/base/default/template/magnimeiosgateway/info/info.phtml
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
<?php
|
3 |
|
4 |
|
@@ -46,7 +46,7 @@
|
|
46 |
|
47 |
<table border="0" cellspacing="1" cellpadding="0" Style="<?php echo $showMB;?>">
|
48 |
<tr>
|
49 |
-
<td colspan="2" align="center"><img src="http://www.lusopay.
|
50 |
</tr>
|
51 |
|
52 |
|
@@ -65,7 +65,7 @@
|
|
65 |
</table>
|
66 |
<table border="0" cellspacing="1" cellpadding="0" Style="<?php echo $showPS;?>">
|
67 |
<tr>
|
68 |
-
<td colspan="2" align="center"><img src="http://www.lusopay.
|
69 |
</tr>
|
70 |
<tr>
|
71 |
<td><?php echo $this->__('<strong>Referência:</strong>'); ?> </td>
|
1 |
+
|
2 |
<?php
|
3 |
|
4 |
|
46 |
|
47 |
<table border="0" cellspacing="1" cellpadding="0" Style="<?php echo $showMB;?>">
|
48 |
<tr>
|
49 |
+
<td colspan="2" align="center"><img src="http://www.lusopay.pt/imagens/modulos/Logo_Lusopay_MB125x80px.png" border="0" alt="<?php echo $this->getMethod()->getTitle(); ?>" title="Pagamento por Multibanco" /></td>
|
50 |
</tr>
|
51 |
|
52 |
|
65 |
</table>
|
66 |
<table border="0" cellspacing="1" cellpadding="0" Style="<?php echo $showPS;?>">
|
67 |
<tr>
|
68 |
+
<td colspan="2" align="center"><img src="http://www.lusopay.pt/imagens/modulos/Logo_Lusopay_Payshop125x80px.png" border="0" alt="<?php echo $this->getMethod()->getTitle(); ?>" title="Pagamento por Payshop" /></td>
|
69 |
</tr>
|
70 |
<tr>
|
71 |
<td><?php echo $this->__('<strong>Referência:</strong>'); ?> </td>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Lusopay_LusopayGateway</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Metodo de pagamento através da geração referências Multibanco e payshop</description>
|
11 |
<notes>Versão para magento 1.9</notes>
|
12 |
<authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
|
13 |
-
<date>2014-
|
14 |
-
<time>10:
|
15 |
-
<contents><target name="magelocal"><dir name="Magnimeios"><dir name="Magnimeiosgateway"><dir name="Block"><file name="Form.php" hash="3f75ba24352b086af9c008039f9bc63f"/><file name="Info.php" hash="70f29099be47705bb11c1c5765c58b24"/><file name="Form.php" hash="3f75ba24352b086af9c008039f9bc63f"/><file name="Info.php" hash="70f29099be47705bb11c1c5765c58b24"/></dir><dir name="Helper"><file name="Data.php" hash="cc2d593bb9bf9228d46291519801922c"/><file name="Data.php" hash="cc2d593bb9bf9228d46291519801922c"/></dir><dir name="Model"><dir name="Convert"><file name="Order.php" hash="5b2063bb5a1e5186b1e7052e694a208c"/><file name="Quote.php" hash="67c336422be52cffee09ab454677eeee"/><file name="Quote.php" hash="67c336422be52cffee09ab454677eeee"/><file name="Order.php" hash="5b2063bb5a1e5186b1e7052e694a208c"/></dir><file name="GerarRef.php" hash="
|
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>Lusopay_LusopayGateway</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Metodo de pagamento através da geração referências Multibanco e payshop</description>
|
11 |
<notes>Versão para magento 1.9</notes>
|
12 |
<authors><author><name>Lusopay</name><user>lusopay</user><email>hf@lusopay.com</email></author></authors>
|
13 |
+
<date>2014-12-30</date>
|
14 |
+
<time>10:12:39</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Magnimeios"><dir name="Magnimeiosgateway"><dir name="Block"><file name="Form.php" hash="3f75ba24352b086af9c008039f9bc63f"/><file name="Info.php" hash="70f29099be47705bb11c1c5765c58b24"/><file name="Form.php" hash="3f75ba24352b086af9c008039f9bc63f"/><file name="Info.php" hash="70f29099be47705bb11c1c5765c58b24"/></dir><dir name="Helper"><file name="Data.php" hash="cc2d593bb9bf9228d46291519801922c"/><file name="Data.php" hash="cc2d593bb9bf9228d46291519801922c"/></dir><dir name="Model"><dir name="Convert"><file name="Order.php" hash="5b2063bb5a1e5186b1e7052e694a208c"/><file name="Quote.php" hash="67c336422be52cffee09ab454677eeee"/><file name="Quote.php" hash="67c336422be52cffee09ab454677eeee"/><file name="Order.php" hash="5b2063bb5a1e5186b1e7052e694a208c"/></dir><file name="GerarRef.php" hash="c182982442edb867697a0d94c1255370"/><dir name="Mysql4"><file name="Setup.php" hash="81bb2624d9a505d700353013efebf632"/><file name="Setup.php" hash="81bb2624d9a505d700353013efebf632"/></dir><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/><file name="GerarRef.php" hash="c182982442edb867697a0d94c1255370"/><file name="PaymentAction.php" hash="52b0609d8c62770fb03ed1ca830a17a7"/></dir><dir name="etc"><file name="config.xml" hash="5af65afe91e361e06cb79fe5dde89214"/><file name="system.xml" hash="2bfdf005b6527f0fa3107e62378b0610"/><file name="config.xml" hash="5af65afe91e361e06cb79fe5dde89214"/><file name="system.xml" hash="2bfdf005b6527f0fa3107e62378b0610"/></dir><dir name="sql"><dir name="magnimeiosgateway_setup"><file name="mysql4-install-2.0.0.php" hash="cfdf054ed86842fdc86de599aecf4fff"/><file name="mysql4-install-2.0.0.php" hash="cfdf054ed86842fdc86de599aecf4fff"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="info"><dir name="pdf"><file name="info.phtml" hash="5080d20a40f627198414bef4d513269f"/></dir><file name="info.phtml" hash="d3797bc60dce649cc1e25154e3e1c521"/></dir><dir name="form"><file name="form.phtml" hash="9d041c914f3feada5a4bf4958afa04aa"/><file name="mark.phtml" hash="747f61cb869f185ac3e808f6707838ed"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magnimeiosgateway"><dir name="form"><file name="form.phtml" hash="ba48c0bf1ed926fcc742f7e54c939901"/><file name="mark.phtml" hash="747f61cb869f185ac3e808f6707838ed"/></dir><dir name="info"><file name="info.phtml" hash="59976f60b5830babf6fb9aba5f41959c"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magnimeios_Magnimeiosgateway.xml" hash="bf2c21eae3198cddf69ab496cb29443f"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="magnimeiosgateway"><file name="Logo_Lusopay_256x85px.png" hash="bcc54ae1f8a25cf10f8642a8f91339e2"/><file name="logo.png" hash="c2e0e05d5dd6ac2331020dff60adf696"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="magnimeiosgateway"><file name="Logo_Lusopay_MBePayshop125x80px.png" hash="dbe096eb26c34cf69816b97fb049926b"/><file name="logo.png" hash="ad194614eeee86b5dc1fe688e5a0d573"/></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>
|
skin/frontend/base/default/images/magnimeiosgateway/logo.png
CHANGED
Binary file
|