Version Notes
Necessário criar conta no http://www.eupago.pt
Download this release
Release Info
Developer | Eupago |
Extension | Eupago_MB |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/local/Eupago/Multibanco/Block/Onepage/Success.phtml +129 -0
- app/code/local/Eupago/Multibanco/Block/Success.php +13 -0
- app/code/local/Eupago/Multibanco/etc/config.xml +12 -0
- app/design/adminhtml/default/default/template/multibanco/info/info.phtml +0 -21
- app/design/adminhtml/default/default/template/multibanco/info/pdf/info.phtml +0 -5
- app/design/frontend/base/default/layout/multibanco.xml +15 -0
- app/design/frontend/{default/default/template → base/default/template/multibanco}/checkout/success.phtml +3 -0
- app/design/{adminhtml/default → frontend/base}/default/template/multibanco/form/form.phtml +0 -0
- app/design/{adminhtml/default → frontend/base}/default/template/multibanco/form/mark.phtml +0 -0
- app/design/frontend/{default → base}/default/template/multibanco/info/info.phtml +85 -85
- app/design/frontend/default/default/template/multibanco/form/form.phtml +0 -8
- app/design/frontend/default/default/template/multibanco/form/mark.phtml +0 -3
- package.xml +3 -3
- skin/frontend/base/default/images/multibanco/eupagomultibanco.png +0 -0
- skin/frontend/base/default/images/multibanco/mb_mark.gif +0 -0
app/code/local/Eupago/Multibanco/Block/Onepage/Success.phtml
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
echo "dasdasdasas";
|
28 |
+
|
29 |
+
?>
|
30 |
+
|
31 |
+
<div class="page-title">
|
32 |
+
<h1><?php echo $this->__('Your order has been received.') ?></h1>
|
33 |
+
</div>
|
34 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
35 |
+
<h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
|
36 |
+
|
37 |
+
<?php if ($this->getOrderId()): ?>
|
38 |
+
<?php if ($this->getCanViewOrder()) : ?>
|
39 |
+
<p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p>
|
40 |
+
<?php else : ?>
|
41 |
+
<p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?></p>
|
42 |
+
<?php endif; ?>
|
43 |
+
|
44 |
+
<p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
|
45 |
+
<?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) : ?>
|
46 |
+
<p>
|
47 |
+
<?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?>
|
48 |
+
<?php echo $this->getChildHtml() ?>
|
49 |
+
</p>
|
50 |
+
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php endif; ?>
|
53 |
+
|
54 |
+
<?php if ($this->getAgreementRefId()): ?>
|
55 |
+
<p><?php echo $this->__('Your billing agreement # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getAgreementUrl()), $this->escapeHtml($this->getAgreementRefId()))) ?></p>
|
56 |
+
<?php endif; ?>
|
57 |
+
|
58 |
+
<?php if ($profiles = $this->getRecurringProfiles()): ?>
|
59 |
+
<p><?php echo $this->__('Your recurring payment profiles:'); ?></p>
|
60 |
+
<ul class="disc">
|
61 |
+
<?php foreach ($profiles as $profile): ?>
|
62 |
+
<?php $profileIdHtml = ($this->getCanViewProfiles() ? sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getProfileUrl($profile)), $this->escapeHtml($this->getObjectData($profile, 'reference_id'))) : $this->escapeHtml($this->getObjectData($profile, 'reference_id'))); ?>
|
63 |
+
<li><?php echo $this->__('Payment profile # %s: "%s".', $profileIdHtml, $this->escapeHtml($this->getObjectData($profile, 'schedule_description'))) ?></li>
|
64 |
+
<?php endforeach; ?>
|
65 |
+
</ul>
|
66 |
+
<?php endif; ?>
|
67 |
+
|
68 |
+
<?php
|
69 |
+
$sales_flat_order_payment = Mage::getSingleton('core/resource')->getTableName('sales_flat_order_payment');
|
70 |
+
|
71 |
+
$order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());
|
72 |
+
if ($order->getPayment()->getMethod() == 'multibanco') {
|
73 |
+
|
74 |
+
$conn = Mage::getSingleton('core/resource')->getConnection('core_read');
|
75 |
+
$query = $conn->query("SELECT eupago_referencia FROM $sales_flat_order_payment WHERE parent_id=$order->entity_id");
|
76 |
+
$referencia = $query->fetchColumn();
|
77 |
+
$query = $conn->query("SELECT eupago_entidade FROM $sales_flat_order_payment WHERE parent_id=$order->entity_id");
|
78 |
+
$entidade = $query->fetchColumn();
|
79 |
+
$query = $conn->query("SELECT eupago_montante FROM $sales_flat_order_payment WHERE parent_id=$order->entity_id");
|
80 |
+
$valor = $query->fetchColumn();
|
81 |
+
$valor = number_format($valor,'2',',','');
|
82 |
+
}
|
83 |
+
?>
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
<p> Para pagar esta encomenda através da Rede de Caixas Automáticas Multibanco e introduza os seguintes dados:
|
89 |
+
<div align='center'>
|
90 |
+
|
91 |
+
<table style="margin-top: 10px;border: 1px solid #000;" width="450px" cellspacing="0" align="center">
|
92 |
+
<tr>
|
93 |
+
<td colspan="2" style="height:25px;vertical-align:center; text-align:center">
|
94 |
+
<img src="https://seguro.eupago.pt/repositorio/imagens/eupagomultibanco.png" alt="euPago Multibanco" height="25" />
|
95 |
+
</td>
|
96 |
+
</tr>
|
97 |
+
<tr>
|
98 |
+
<td colspan="2" style="height:25px;vertical-align:center;background-color:#3a87ad;font-size:small;text-align:center;color:#ebebeb;">
|
99 |
+
Multibanco (Pagamento de Compras\Serviços)</td>
|
100 |
+
</tr>
|
101 |
+
<tr>
|
102 |
+
<td align="left" style="font-size:small;font-weight:bold;padding-left:15px;">Entidade:</td>
|
103 |
+
<td align="left" style="font-size:small;"><?php echo $entidade; ?></td>
|
104 |
+
</tr>
|
105 |
+
<tr>
|
106 |
+
<td align="left" style="font-size:small;font-weight:bold;padding-left:15px;">Referência:</td>
|
107 |
+
<td align="left" style="font-size:small;"><?php echo $referencia; ?> </td>
|
108 |
+
</tr>
|
109 |
+
<tr>
|
110 |
+
<td align="left" style="font-size:small;font-weight:bold;padding-left:15px;">Valor:</td>
|
111 |
+
<td align="left" style="font-size:small;"><?php echo $valor; ?> EUR </td>
|
112 |
+
</tr>
|
113 |
+
<tr>
|
114 |
+
<td colspan="2" style="height:30px;vertical-align:center;background-color:#3a87ad;font-size:small;text-align:center;color:#ebebeb;">O talão emitido pela caixa automática faz de prova de pagamento.<br/>Conserve-o.</td>
|
115 |
+
</tr>
|
116 |
+
</table>
|
117 |
+
|
118 |
+
</div>
|
119 |
+
|
120 |
+
|
121 |
+
|
122 |
+
</p>
|
123 |
+
|
124 |
+
<div class="buttons-set">
|
125 |
+
<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>
|
126 |
+
</div>
|
127 |
+
|
128 |
+
|
129 |
+
|
app/code/local/Eupago/Multibanco/Block/Success.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Eupago_Multibanco_Block_Success extends Mage_Checkout_Block_Onepage_Success
|
3 |
+
{
|
4 |
+
protected function _construct()
|
5 |
+
{
|
6 |
+
echo "passou aki";
|
7 |
+
parent::_construct();
|
8 |
+
$this->setTemplate('multibanco/checkout/success.phtml');
|
9 |
+
}
|
10 |
+
|
11 |
+
}
|
12 |
+
|
13 |
+
?>
|
app/code/local/Eupago/Multibanco/etc/config.xml
CHANGED
@@ -15,6 +15,13 @@
|
|
15 |
</Eupago_Multibanco>
|
16 |
</modules>
|
17 |
</translate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
</frontend>
|
19 |
<adminhtml>
|
20 |
<translate>
|
@@ -98,6 +105,11 @@
|
|
98 |
<multibanco>
|
99 |
<class>Eupago_Multibanco_Block</class>
|
100 |
</multibanco>
|
|
|
|
|
|
|
|
|
|
|
101 |
</blocks>
|
102 |
<helpers>
|
103 |
<multibanco>
|
15 |
</Eupago_Multibanco>
|
16 |
</modules>
|
17 |
</translate>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<yourmodule>
|
21 |
+
<file>multibanco.xml</file>
|
22 |
+
</yourmodule>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
</frontend>
|
26 |
<adminhtml>
|
27 |
<translate>
|
105 |
<multibanco>
|
106 |
<class>Eupago_Multibanco_Block</class>
|
107 |
</multibanco>
|
108 |
+
<checkout>
|
109 |
+
<rewrite>
|
110 |
+
<checkout_onepage_success>Eupago_Multibanco_Block_Success</checkout_onepage_success>
|
111 |
+
</rewrite>
|
112 |
+
</checkout>
|
113 |
</blocks>
|
114 |
<helpers>
|
115 |
<multibanco>
|
app/design/adminhtml/default/default/template/multibanco/info/info.phtml
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<table border="0" cellspacing="1" cellpadding="0">
|
2 |
-
<tr>
|
3 |
-
<td><img src="<?php echo $this->getSkinUrl('images/multibanco/eupagomultibanco.png') ?>" border="0" alt="<?php echo $this->getMethod()->getTitle(); ?>" title="<?php echo $this->getMethod()->getTitle(); ?>" /></td>
|
4 |
-
</tr>
|
5 |
-
<tr>
|
6 |
-
<td><table width="100%" border="0" cellspacing="1" cellpadding="0">
|
7 |
-
<tr>
|
8 |
-
<td><?php echo $this->__('<strong>Entidade:</strong>'); ?></td>
|
9 |
-
<td><?php echo $this->htmlEscape($this->getInfo()->getEupagoEntidade()) ?></td>
|
10 |
-
</tr>
|
11 |
-
<tr>
|
12 |
-
<td><?php echo $this->__('<strong>Referência:</strong>'); ?> </td>
|
13 |
-
<td><?php echo $this->htmlEscape($this->getInfo()->getEupagoReferencia()); ?></td>
|
14 |
-
</tr>
|
15 |
-
<tr>
|
16 |
-
<td><?php echo $this->__('<strong>Montante:</strong>'); ?></td>
|
17 |
-
<td><?php echo number_format($this->htmlEscape($this->getInfo()->getEupagoMontante()),'2',',','') . ' EUR'; ?></td>
|
18 |
-
</tr>
|
19 |
-
</table></td>
|
20 |
-
</tr>
|
21 |
-
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/multibanco/info/pdf/info.phtml
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
<?php echo $this->__('Entidade: %s', $this->htmlEscape($this->getInfo()->getEupagoEntidade())) ?>
|
2 |
-
{{pdf_row_separator}}
|
3 |
-
<?php echo utf8_encode($this->__('Refer�ncia: %s', $this->htmlEscape($this->getInfo()->getEupagoReferencia()))) ?>
|
4 |
-
{{pdf_row_separator}}
|
5 |
-
<?php echo $this->__('Montante: %s EUR', $this->htmlEscape($this->getInfo()->getEupagoMontante())) ?>
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/layout/multibanco.xml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<checkout_onepage_success translate="label">
|
4 |
+
<label>One Page Checkout Success</label>
|
5 |
+
<!-- <reference name="root">
|
6 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
7 |
+
</reference> -->
|
8 |
+
<reference name="content">
|
9 |
+
<reference name="checkout.success">
|
10 |
+
<action method="setTemplate"><template>multibanco/checkout/success.phtml</template></action>
|
11 |
+
</reference>
|
12 |
+
</reference>
|
13 |
+
</checkout_onepage_success>
|
14 |
+
</layout>
|
15 |
+
|
app/design/frontend/{default/default/template → base/default/template/multibanco}/checkout/success.phtml
RENAMED
@@ -23,6 +23,9 @@
|
|
23 |
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
|
|
|
|
|
|
26 |
?>
|
27 |
|
28 |
<div class="page-title">
|
23 |
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
+
|
27 |
+
echo "dasdasdasas";
|
28 |
+
|
29 |
?>
|
30 |
|
31 |
<div class="page-title">
|
app/design/{adminhtml/default → frontend/base}/default/template/multibanco/form/form.phtml
RENAMED
File without changes
|
app/design/{adminhtml/default → frontend/base}/default/template/multibanco/form/mark.phtml
RENAMED
File without changes
|
app/design/frontend/{default → base}/default/template/multibanco/info/info.phtml
RENAMED
@@ -1,86 +1,86 @@
|
|
1 |
-
<table border="
|
2 |
-
|
3 |
-
<tr>
|
4 |
-
<td><table width="100%" border="0" cellspacing="1" cellpadding="0">
|
5 |
-
|
6 |
-
<?php
|
7 |
-
$referencia = "";
|
8 |
-
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
9 |
-
$quote_id = Mage::getSingleton('checkout/session')->getQuoteId();
|
10 |
-
$conn = Mage::getSingleton('core/resource')->getConnection('core_read');
|
11 |
-
|
12 |
-
if ($quote_id != "") {
|
13 |
-
|
14 |
-
$sales_flat_quote_payment = Mage::getSingleton('core/resource')->getTableName('sales_flat_quote_payment');
|
15 |
-
$query = $conn->query("SELECT eupago_referencia FROM $sales_flat_quote_payment WHERE quote_id= $quote_id");
|
16 |
-
$referencia = $query->fetchColumn();
|
17 |
-
}
|
18 |
-
if ($referencia == "") {
|
19 |
-
?>
|
20 |
-
<tr>
|
21 |
-
<td><img src="<?php echo $this->getSkinUrl('images/multibanco/eupagomultibanco.png') ?>" border="0" alt="<?php echo $this->getMethod()->getTitle(); ?>" title="<?php echo $this->getMethod()->getTitle(); ?>" /></td>
|
22 |
-
</tr>
|
23 |
-
<tr>
|
24 |
-
<td> Os dados para pagamento multibanco serão apresentados quando finalizar a sua encomenda e/ou enviados para o seu e-mail.</td></tr>
|
25 |
-
<?
|
26 |
-
} else {
|
27 |
-
|
28 |
-
|
29 |
-
$conn = Mage::getSingleton('core/resource')->getConnection('core_read');
|
30 |
-
$sales_flat_order_payment = Mage::getSingleton('core/resource')->getTableName('sales_flat_order_payment');
|
31 |
-
$query = $conn->query("SELECT max(parent_id) eupago_referencia FROM $sales_flat_order_payment ");
|
32 |
-
$entity_id = $query->fetchColumn();
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
$query = $conn->query("SELECT eupago_referencia FROM $sales_flat_order_payment WHERE parent_id=$entity_id");
|
37 |
-
$referencia = $query->fetchColumn();
|
38 |
-
$query = $conn->query("SELECT eupago_entidade FROM $sales_flat_order_payment WHERE parent_id=$entity_id");
|
39 |
-
$entidade = $query->fetchColumn();
|
40 |
-
$query = $conn->query("SELECT eupago_montante FROM $sales_flat_order_payment WHERE parent_id=$entity_id");
|
41 |
-
$valor = $query->fetchColumn();
|
42 |
-
$valor = number_format($valor,'2',',','');
|
43 |
-
?>
|
44 |
-
|
45 |
-
<div align='center'>
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
<table style="margin-top: 10px;border: 1px solid #000;" width="250px" cellspacing="0" align="center">
|
52 |
-
<tr>
|
53 |
-
<td colspan="2" style="height:25px;vertical-align:center; text-align:center">
|
54 |
-
<img src="https://seguro.eupago.pt/repositorio/imagens/eupagomultibanco.png" alt="euPago Multibanco" height="25" />
|
55 |
-
</td>
|
56 |
-
</tr>
|
57 |
-
<tr>
|
58 |
-
<td colspan="2" style="height:25px;vertical-align:center;background-color:#3a87ad;font-size:small;text-align:center;color:#ebebeb;">
|
59 |
-
Multibanco (Pagamento de Compras\Serviços)</td>
|
60 |
-
</tr>
|
61 |
-
<tr>
|
62 |
-
<td align="left" style="font-size:small;font-weight:bold;padding-left:15px;">Entidade:</td>
|
63 |
-
<td align="left" style="font-size:small;"><?php echo $entidade; ?></td>
|
64 |
-
</tr>
|
65 |
-
<tr>
|
66 |
-
<td align="left" style="font-size:small;font-weight:bold;padding-left:15px;">Referência:</td>
|
67 |
-
<td align="left" style="font-size:small;"><?php echo $referencia; ?> </td>
|
68 |
-
</tr>
|
69 |
-
<tr>
|
70 |
-
<td align="left" style="font-size:small;font-weight:bold;padding-left:15px;">Valor:</td>
|
71 |
-
<td align="left" style="font-size:small;"><?php echo $valor; ?>EUR </td>
|
72 |
-
</tr>
|
73 |
-
|
74 |
-
</table>
|
75 |
-
|
76 |
-
</div>
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
<? } ?>
|
82 |
-
</tr>
|
83 |
-
|
84 |
-
</table></td>
|
85 |
-
</tr>
|
86 |
</table>
|
1 |
+
<table border="1" cellspacing="1" cellpadding="0">
|
2 |
+
|
3 |
+
<tr>
|
4 |
+
<td><table width="100%" border="0" cellspacing="1" cellpadding="0">
|
5 |
+
|
6 |
+
<?php
|
7 |
+
$referencia = "";
|
8 |
+
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
9 |
+
$quote_id = Mage::getSingleton('checkout/session')->getQuoteId();
|
10 |
+
$conn = Mage::getSingleton('core/resource')->getConnection('core_read');
|
11 |
+
|
12 |
+
if ($quote_id != "") {
|
13 |
+
|
14 |
+
$sales_flat_quote_payment = Mage::getSingleton('core/resource')->getTableName('sales_flat_quote_payment');
|
15 |
+
$query = $conn->query("SELECT eupago_referencia FROM $sales_flat_quote_payment WHERE quote_id= $quote_id");
|
16 |
+
$referencia = $query->fetchColumn();
|
17 |
+
}
|
18 |
+
if ($referencia == "") {
|
19 |
+
?>
|
20 |
+
<tr>
|
21 |
+
<td><img src="<?php echo $this->getSkinUrl('images/multibanco/eupagomultibanco.png') ?>" border="0" alt="<?php echo $this->getMethod()->getTitle(); ?>" title="<?php echo $this->getMethod()->getTitle(); ?>" /></td>
|
22 |
+
</tr>
|
23 |
+
<tr>
|
24 |
+
<td> Os dados para pagamento multibanco serão apresentados quando finalizar a sua encomenda e/ou enviados para o seu e-mail.</td></tr>
|
25 |
+
<?
|
26 |
+
} else {
|
27 |
+
|
28 |
+
|
29 |
+
$conn = Mage::getSingleton('core/resource')->getConnection('core_read');
|
30 |
+
$sales_flat_order_payment = Mage::getSingleton('core/resource')->getTableName('sales_flat_order_payment');
|
31 |
+
$query = $conn->query("SELECT max(parent_id) eupago_referencia FROM $sales_flat_order_payment ");
|
32 |
+
$entity_id = $query->fetchColumn();
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
$query = $conn->query("SELECT eupago_referencia FROM $sales_flat_order_payment WHERE parent_id=$entity_id");
|
37 |
+
$referencia = $query->fetchColumn();
|
38 |
+
$query = $conn->query("SELECT eupago_entidade FROM $sales_flat_order_payment WHERE parent_id=$entity_id");
|
39 |
+
$entidade = $query->fetchColumn();
|
40 |
+
$query = $conn->query("SELECT eupago_montante FROM $sales_flat_order_payment WHERE parent_id=$entity_id");
|
41 |
+
$valor = $query->fetchColumn();
|
42 |
+
$valor = number_format($valor,'2',',','');
|
43 |
+
?>
|
44 |
+
|
45 |
+
<div align='center'>
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
<table style="margin-top: 10px;border: 1px solid #000;" width="250px" cellspacing="0" align="center">
|
52 |
+
<tr>
|
53 |
+
<td colspan="2" style="height:25px;vertical-align:center; text-align:center">
|
54 |
+
<img src="https://seguro.eupago.pt/repositorio/imagens/eupagomultibanco.png" alt="euPago Multibanco" height="25" />
|
55 |
+
</td>
|
56 |
+
</tr>
|
57 |
+
<tr>
|
58 |
+
<td colspan="2" style="height:25px;vertical-align:center;background-color:#3a87ad;font-size:small;text-align:center;color:#ebebeb;">
|
59 |
+
Multibanco (Pagamento de Compras\Serviços)</td>
|
60 |
+
</tr>
|
61 |
+
<tr>
|
62 |
+
<td align="left" style="font-size:small;font-weight:bold;padding-left:15px;">Entidade:</td>
|
63 |
+
<td align="left" style="font-size:small;"><?php echo $entidade; ?></td>
|
64 |
+
</tr>
|
65 |
+
<tr>
|
66 |
+
<td align="left" style="font-size:small;font-weight:bold;padding-left:15px;">Referência:</td>
|
67 |
+
<td align="left" style="font-size:small;"><?php echo $referencia; ?> </td>
|
68 |
+
</tr>
|
69 |
+
<tr>
|
70 |
+
<td align="left" style="font-size:small;font-weight:bold;padding-left:15px;">Valor:</td>
|
71 |
+
<td align="left" style="font-size:small;"><?php echo $valor; ?>EUR </td>
|
72 |
+
</tr>
|
73 |
+
|
74 |
+
</table>
|
75 |
+
|
76 |
+
</div>
|
77 |
+
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
<? } ?>
|
82 |
+
</tr>
|
83 |
+
|
84 |
+
</table></td>
|
85 |
+
</tr>
|
86 |
</table>
|
app/design/frontend/default/default/template/multibanco/form/form.phtml
DELETED
@@ -1,8 +0,0 @@
|
|
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/multibanco/eupagomultibanco.png') ?>" border="0" /></li>
|
4 |
-
<?php if ($this->getMethod()->getMensagem()): ?>
|
5 |
-
<?php echo '<li>' . $this->getMethod()->getMensagem() . '</li>'; ?>
|
6 |
-
<?php endif; ?>
|
7 |
-
</ul>
|
8 |
-
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/multibanco/form/mark.phtml
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
<!-- MB Logo -->
|
2 |
-
<img src="<?php echo $this->getSkinUrl('images/multibanco/mb_mark.gif') ?>" class="v-middle" />
|
3 |
-
<!-- MB Logo -->
|
|
|
|
|
|
package.xml
CHANGED
@@ -10,9 +10,9 @@
|
|
10 |
<description>Modulo de pagamento por Entidade e Referencia Multibanco</description>
|
11 |
<notes>Necessário criar conta no http://www.eupago.pt</notes>
|
12 |
<authors><author><name>euPago</name><user>euPago</user><email>dev@eupago.pt</email></author></authors>
|
13 |
-
<date>2015-12-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Eupago"><dir name="Multibanco"><dir name="Block"><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/><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="81d907c2ed831b57de60a6b2b42d4c36"/><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="81d907c2ed831b57de60a6b2b42d4c36"/><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="81d907c2ed831b57de60a6b2b42d4c36"/><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="81d907c2ed831b57de60a6b2b42d4c36"/><dir name="Mysgl4"><file name="Setup.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><dir name="etc"><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
10 |
<description>Modulo de pagamento por Entidade e Referencia Multibanco</description>
|
11 |
<notes>Necessário criar conta no http://www.eupago.pt</notes>
|
12 |
<authors><author><name>euPago</name><user>euPago</user><email>dev@eupago.pt</email></author></authors>
|
13 |
+
<date>2015-12-07</date>
|
14 |
+
<time>13:00:38</time>
|
15 |
+
<contents><target name="magelocal"><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="ec51c7f1fc81caff3aba0d310b563919"/><file name="Success.phtml" hash="ec51c7f1fc81caff3aba0d310b563919"/><file name="Success.phtml" hash="ec51c7f1fc81caff3aba0d310b563919"/></dir><file name="Success.php" hash="c5c80ea22deadb07018d588174e4bb7e"/><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/><file name="Success.php" hash="c5c80ea22deadb07018d588174e4bb7e"/><file name="Form.php" hash="b10bbd2ac4230fb7b5b23163bba5497d"/><file name="Info.php" hash="6b2e8bc2cb50cd10921632d72d283e91"/><file name="Success.php" hash="c5c80ea22deadb07018d588174e4bb7e"/><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="81d907c2ed831b57de60a6b2b42d4c36"/><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="81d907c2ed831b57de60a6b2b42d4c36"/><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="81d907c2ed831b57de60a6b2b42d4c36"/><file name="GerarRef.php" hash="a7e966a5dd1e47544cd8aaea3b460238"/><file name="PaymentAction.php" hash="d37848a985083e38e966ec081aa4c02b"/><file name="Process.php" hash="81d907c2ed831b57de60a6b2b42d4c36"/><dir name="Mysgl4"><file name="Setup.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><dir name="etc"><file name="config.xml" hash="fe6f5159f3c4a5bd411a7ce4d0e8e2ad"/><file name="system.xml" hash="a8065db3bfe97c4ce3e29b1b2ca9fe72"/><file name="config.xml" hash="fe6f5159f3c4a5bd411a7ce4d0e8e2ad"/><file name="system.xml" hash="a8065db3bfe97c4ce3e29b1b2ca9fe72"/><file name="config.xml" hash="fe6f5159f3c4a5bd411a7ce4d0e8e2ad"/><file name="system.xml" hash="a8065db3bfe97c4ce3e29b1b2ca9fe72"/><file name="config.xml" hash="fe6f5159f3c4a5bd411a7ce4d0e8e2ad"/><file name="system.xml" hash="a8065db3bfe97c4ce3e29b1b2ca9fe72"/></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="65a22db8af02e4fa13ca4b9c0e212c82"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="multibanco"><dir name="form"><file name="form.phtml" hash=""/><file name="mark.phtml" hash=""/></dir><dir name="info"><file name="info.phtml" hash=""/><dir name="pdf"><file name="info.phtml" hash=""/></dir></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="ec51c7f1fc81caff3aba0d310b563919"/><file name="success.phtml" hash="ec51c7f1fc81caff3aba0d310b563919"/><file name="success.phtml" hash="ec51c7f1fc81caff3aba0d310b563919"/></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="e723851ebf60f894f37154dd89d7ff4e"/><file name="info.phtml" hash="e723851ebf60f894f37154dd89d7ff4e"/><file name="info.phtml" hash="e723851ebf60f894f37154dd89d7ff4e"/></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>
|
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/multibanco/eupagomultibanco.png
ADDED
Binary file
|
skin/frontend/base/default/images/multibanco/mb_mark.gif
ADDED
Binary file
|