Created
July 21, 2012 16:50
-
-
Save deivisonarthur/3156396 to your computer and use it in GitHub Desktop.
Boleto Magento cód 01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Deivison --> | |
<?php | |
echo "<br />"; | |
// segunda via do boleto | |
if ((strpos($this->getPaymentHtml(), "Boleto") !== false) && ( $_order->getStatus() == $this->__(Mage::getStoreConfig('payment/boleto_bancario/order_status')) )) { | |
$orderid = $_order->getId(); | |
echo "<span style='float:right'><a style='color:#ffb81e' href='" . $this->getUrl("boleto/standard/adminView/order_id/" . $orderid) . "' class='link-cart' onclick=\"this.target='_blank'\">" . $this->__("Gerar 2a Via do Boleto") . "</a></span>"; | |
} | |
?> | |
<!-- Deivison --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adicionando o link da segunda via do boleto no seu admin | |
2º – Abra o arquivo app/design/adminhtml/default/default/template/sales/order/view/tab/info.phtml, procure | |
por volta da linha 40 o seguinte código: | |
<h4><?php echo Mage::helper(‘sales’)->__(‘Payment Information’) ?></h4> | |
Coloque aqui o cód acima BoletoMagento01.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment