Version Notes
feature:
eupago payment info in one page checkout
Download this release
Release Info
Developer | Eupago |
Extension | Eupago_MB |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- app/code/community/Eupago/Multibanco/Block/Onepage/Success.phtml +2 -5
- app/code/community/Eupago/Multibanco/etc/config.xml +5 -5
- app/design/frontend/base/default/template/multibanco/checkout/success.phtml +2 -5
- app/design/frontend/base/default/template/multibanco/info/info.phtml +2 -2
- package.xml +5 -5
app/code/community/Eupago/Multibanco/Block/Onepage/Success.phtml
CHANGED
@@ -81,7 +81,7 @@ if ($order->getPayment()->getMethod() == 'multibanco') {
|
|
81 |
?>
|
82 |
|
83 |
|
84 |
-
|
85 |
|
86 |
<p> Para pagar esta encomenda através da Rede de Caixas Automáticas Multibanco e introduza os seguintes dados:
|
87 |
<div align='center'>
|
@@ -114,11 +114,8 @@ if ($order->getPayment()->getMethod() == 'multibanco') {
|
|
114 |
</table>
|
115 |
|
116 |
</div>
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
</p>
|
121 |
-
|
122 |
<div class="buttons-set">
|
123 |
<button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
124 |
</div>
|
81 |
?>
|
82 |
|
83 |
|
84 |
+
<?php if($order->getPayment()->getMethod() == 'multibanco'){?>
|
85 |
|
86 |
<p> Para pagar esta encomenda através da Rede de Caixas Automáticas Multibanco e introduza os seguintes dados:
|
87 |
<div align='center'>
|
114 |
</table>
|
115 |
|
116 |
</div>
|
|
|
|
|
|
|
117 |
</p>
|
118 |
+
<?php } ?>
|
119 |
<div class="buttons-set">
|
120 |
<button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
121 |
</div>
|
app/code/community/Eupago/Multibanco/etc/config.xml
CHANGED
@@ -30,6 +30,11 @@
|
|
30 |
<frontName>Eupago</frontName>
|
31 |
</args>
|
32 |
</Eupago_Multibanco>
|
|
|
|
|
|
|
|
|
|
|
33 |
</routers>
|
34 |
</frontend>
|
35 |
<adminhtml>
|
@@ -114,11 +119,6 @@
|
|
114 |
<multibanco>
|
115 |
<class>Eupago_Multibanco_Block</class>
|
116 |
</multibanco>
|
117 |
-
<checkout>
|
118 |
-
<rewrite>
|
119 |
-
<checkout_onepage_success>Eupago_Multibanco_Block_Success</checkout_onepage_success>
|
120 |
-
</rewrite>
|
121 |
-
</checkout>
|
122 |
</blocks>
|
123 |
<helpers>
|
124 |
<multibanco>
|
30 |
<frontName>Eupago</frontName>
|
31 |
</args>
|
32 |
</Eupago_Multibanco>
|
33 |
+
<checkout>
|
34 |
+
<rewrite>
|
35 |
+
<checkout_onepage_success>Eupago_Multibanco_Block_Success</checkout_onepage_success>
|
36 |
+
</rewrite>
|
37 |
+
</checkout>
|
38 |
</routers>
|
39 |
</frontend>
|
40 |
<adminhtml>
|
119 |
<multibanco>
|
120 |
<class>Eupago_Multibanco_Block</class>
|
121 |
</multibanco>
|
|
|
|
|
|
|
|
|
|
|
122 |
</blocks>
|
123 |
<helpers>
|
124 |
<multibanco>
|
app/design/frontend/base/default/template/multibanco/checkout/success.phtml
CHANGED
@@ -81,7 +81,7 @@ if ($order->getPayment()->getMethod() == 'multibanco') {
|
|
81 |
?>
|
82 |
|
83 |
|
84 |
-
|
85 |
|
86 |
<p> Para pagar esta encomenda através da Rede de Caixas Automáticas Multibanco e introduza os seguintes dados:
|
87 |
<div align='center'>
|
@@ -114,11 +114,8 @@ if ($order->getPayment()->getMethod() == 'multibanco') {
|
|
114 |
</table>
|
115 |
|
116 |
</div>
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
</p>
|
121 |
-
|
122 |
<div class="buttons-set">
|
123 |
<button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
124 |
</div>
|
81 |
?>
|
82 |
|
83 |
|
84 |
+
<?php if($order->getPayment()->getMethod() == 'multibanco'){?>
|
85 |
|
86 |
<p> Para pagar esta encomenda através da Rede de Caixas Automáticas Multibanco e introduza os seguintes dados:
|
87 |
<div align='center'>
|
114 |
</table>
|
115 |
|
116 |
</div>
|
|
|
|
|
|
|
117 |
</p>
|
118 |
+
<?php } ?>
|
119 |
<div class="buttons-set">
|
120 |
<button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
121 |
</div>
|
app/design/frontend/base/default/template/multibanco/info/info.phtml
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
<?php
|
7 |
|
8 |
$AdminQouteId = Mage::getSingleton('admin/session')->getAdminQuoteEupagoId();
|
9 |
-
if($AdminQouteId != null
|
10 |
$quote_id = $AdminQouteId;
|
11 |
}else{
|
12 |
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
@@ -42,7 +42,7 @@
|
|
42 |
$query = $conn->query("SELECT eupago_montante FROM $sales_flat_order_payment WHERE parent_id=$entity_id");
|
43 |
$valor = $query->fetchColumn();
|
44 |
$valor = number_format($valor,'2',',','');
|
45 |
-
if(($referencia != ""
|
46 |
?>
|
47 |
|
48 |
<div align='center'>
|
6 |
<?php
|
7 |
|
8 |
$AdminQouteId = Mage::getSingleton('admin/session')->getAdminQuoteEupagoId();
|
9 |
+
if($AdminQouteId != null && $AdminQouteId != ""){
|
10 |
$quote_id = $AdminQouteId;
|
11 |
}else{
|
12 |
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
42 |
$query = $conn->query("SELECT eupago_montante FROM $sales_flat_order_payment WHERE parent_id=$entity_id");
|
43 |
$valor = $query->fetchColumn();
|
44 |
$valor = number_format($valor,'2',',','');
|
45 |
+
if(($referencia != "" && $referencia != null) && ($entidade != "" && $entidade != null) && $valor){
|
46 |
?>
|
47 |
|
48 |
<div align='center'>
|
package.xml
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eupago_MB</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Modulo de pagamento que gera referencias multibanco.</summary>
|
10 |
<description>Modulo de pagamento por Entidade e Referencia Multibanco</description>
|
11 |
-
<notes>
|
12 |
-
|
13 |
<authors><author><name>euPago</name><user>euPago</user><email>dev@eupago.pt</email></author></authors>
|
14 |
<date>2016-04-04</date>
|
15 |
-
<time>
|
16 |
-
<contents><target name="magecommunity"><dir name="Eupago"><dir name="Multibanco"><dir name="Block"><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/><dir name="Onepage"><file name="Success.phtml" hash="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eupago_MB</name>
|
4 |
+
<version>1.0.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Modulo de pagamento que gera referencias multibanco.</summary>
|
10 |
<description>Modulo de pagamento por Entidade e Referencia Multibanco</description>
|
11 |
+
<notes>feature:
|
12 |
+
eupago payment info in one page checkout</notes>
|
13 |
<authors><author><name>euPago</name><user>euPago</user><email>dev@eupago.pt</email></author></authors>
|
14 |
<date>2016-04-04</date>
|
15 |
+
<time>10:54:12</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Eupago"><dir name="Multibanco"><dir name="Block"><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/><dir name="Onepage"><file name="Success.phtml" hash="cc8ae90a0d1473ecbebdd6767a052407"/><file name="Success.phtml" hash="cc8ae90a0d1473ecbebdd6767a052407"/><file name="Success.phtml" hash="cc8ae90a0d1473ecbebdd6767a052407"/></dir><file name="Success.php" hash="60fc3720de3d31488f5850e8e7c27a3e"/><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/><file name="Success.php" hash="60fc3720de3d31488f5850e8e7c27a3e"/><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/><file name="Success.php" hash="60fc3720de3d31488f5850e8e7c27a3e"/><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/></dir><dir name="Helper"><file name="Data.php" hash="08f64400e4204040eced048d885fe3da"/><file name="Data.php" hash="08f64400e4204040eced048d885fe3da"/><file name="Data.php" hash="08f64400e4204040eced048d885fe3da"/><file name="Data.php" hash="08f64400e4204040eced048d885fe3da"/></dir><dir name="Model"><dir name="Convert"><file name="Order.php" hash="10fb9abcee863b4a809cd46d39fa0121"/><file name="Quote.php" hash="371acecf7ee5300f3bf9f363ca2c6e39"/><file name="Order.php" hash="10fb9abcee863b4a809cd46d39fa0121"/><file name="Quote.php" hash="371acecf7ee5300f3bf9f363ca2c6e39"/><file name="Order.php" hash="10fb9abcee863b4a809cd46d39fa0121"/><file name="Quote.php" hash="371acecf7ee5300f3bf9f363ca2c6e39"/><file name="Order.php" hash="10fb9abcee863b4a809cd46d39fa0121"/><file name="Quote.php" hash="371acecf7ee5300f3bf9f363ca2c6e39"/><file name="Order.php" hash="10fb9abcee863b4a809cd46d39fa0121"/><file name="Quote.php" hash="371acecf7ee5300f3bf9f363ca2c6e39"/></dir><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><dir name="Mysql4"><file name="Setup.php" hash="da156d537188951a4f6eccc0adf96f06"/><file name="Setup.php" hash="da156d537188951a4f6eccc0adf96f06"/><file name="Setup.php" hash="da156d537188951a4f6eccc0adf96f06"/></dir><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="2b87cf9d04aa0614e67db0a08a3ad79a"/><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="2b87cf9d04aa0614e67db0a08a3ad79a"/><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="2b87cf9d04aa0614e67db0a08a3ad79a"/><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="2b87cf9d04aa0614e67db0a08a3ad79a"/><dir name="Mysgl4"><file name="Setup.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><dir name="controllers"><file name="CallbackController.php" hash="2997ccbeeb97ac25a4abe1c93de5dbf0"/><file name="CallbackController.php" hash="2997ccbeeb97ac25a4abe1c93de5dbf0"/><file name="CallbackController.php" hash="2997ccbeeb97ac25a4abe1c93de5dbf0"/><file name="CallbackController.php" hash="2997ccbeeb97ac25a4abe1c93de5dbf0"/></dir><dir name="etc"><file name="config.xml" hash="bd3f2d2488182889131cb2d8913af039"/><file name="system.xml" hash="4831e23e9cde731f15fcd14015103102"/><file name="config.xml" hash="bd3f2d2488182889131cb2d8913af039"/><file name="system.xml" hash="4831e23e9cde731f15fcd14015103102"/><file name="config.xml" hash="bd3f2d2488182889131cb2d8913af039"/><file name="system.xml" hash="4831e23e9cde731f15fcd14015103102"/><file name="config.xml" hash="bd3f2d2488182889131cb2d8913af039"/><file name="system.xml" hash="4831e23e9cde731f15fcd14015103102"/></dir><dir name="sql"><dir name="multibanco_setup"><file name="mysql4-install-1.0.0.php" hash="9f00ec506a0a94d8863cf14e3673d9ef"/><file name="mysql4-install-1.0.0.php" hash="9f00ec506a0a94d8863cf14e3673d9ef"/><file name="mysql4-install-1.0.0.php" hash="9f00ec506a0a94d8863cf14e3673d9ef"/><file name="mysql4-install-1.0.0.php" hash="9f00ec506a0a94d8863cf14e3673d9ef"/><file name="mysql4-install-1.0.0.php" hash="9f00ec506a0a94d8863cf14e3673d9ef"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eupago_Multibanco.xml" hash="79392e90e1f4e79aa0362ea7957930c3"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="multibanco"><dir name="form"><file name="form.phtml" hash="a9bed52032750b6d5b01d09306f63cc1"/><file name="mark.phtml" hash="59b0d4028051a96a8c54d5b33b67c8fd"/><file name="form.phtml" hash="a9bed52032750b6d5b01d09306f63cc1"/><file name="mark.phtml" hash="59b0d4028051a96a8c54d5b33b67c8fd"/><file name="form.phtml" hash="a9bed52032750b6d5b01d09306f63cc1"/><file name="mark.phtml" hash="59b0d4028051a96a8c54d5b33b67c8fd"/></dir><dir name="info"><file name="info.phtml" hash="fa6321e93aaf8d3849b6b5219a8b8987"/><dir name="pdf"><file name="info.phtml" hash="30d8927be3ac9f8ec898b21a58d1c574"/><file name="info.phtml" hash="30d8927be3ac9f8ec898b21a58d1c574"/><file name="info.phtml" hash="30d8927be3ac9f8ec898b21a58d1c574"/><file name="info.phtml" hash="30d8927be3ac9f8ec898b21a58d1c574"/></dir><file name="info.phtml" hash="fa6321e93aaf8d3849b6b5219a8b8987"/><file name="info.phtml" hash="fa6321e93aaf8d3849b6b5219a8b8987"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="multibanco"><dir name="checkout"><file name="success.phtml" hash="cc8ae90a0d1473ecbebdd6767a052407"/><file name="success.phtml" hash="cc8ae90a0d1473ecbebdd6767a052407"/><file name="success.phtml" hash="cc8ae90a0d1473ecbebdd6767a052407"/></dir><dir name="form"><file name="form.phtml" hash="a9bed52032750b6d5b01d09306f63cc1"/><file name="mark.phtml" hash="59b0d4028051a96a8c54d5b33b67c8fd"/><file name="form.phtml" hash="a9bed52032750b6d5b01d09306f63cc1"/><file name="mark.phtml" hash="59b0d4028051a96a8c54d5b33b67c8fd"/><file name="form.phtml" hash="a9bed52032750b6d5b01d09306f63cc1"/><file name="mark.phtml" hash="59b0d4028051a96a8c54d5b33b67c8fd"/></dir><dir name="info"><file name="info.phtml" hash="25cbb5cdd9211bf573c1323971eb6c08"/><file name="info.phtml" hash="25cbb5cdd9211bf573c1323971eb6c08"/><file name="info.phtml" hash="25cbb5cdd9211bf573c1323971eb6c08"/></dir></dir></dir><dir name="layout"><file name="multibanco.xml" hash="969c55bcef9cc469e66d53283a31c200"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="multibanco"><file name="eupagomultibanco.png" hash="0b8ff29352f558fc8e756339a337a885"/><file name="eupagomultibanco.png" hash="0b8ff29352f558fc8e756339a337a885"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="multibanco"><file name="eupagomultibanco.png" hash="0ca321915123d5a712fb2b4f6744278a"/><file name="mb_mark.gif" hash="bbfd7b49dc892a72a8a87d8d1ae3e4ee"/><file name="eupagomultibanco.png" hash="0ca321915123d5a712fb2b4f6744278a"/><file name="mb_mark.gif" hash="bbfd7b49dc892a72a8a87d8d1ae3e4ee"/></dir></dir></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|