Skip to content

Instantly share code, notes, and snippets.

@deivisonarthur
Created July 21, 2012 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deivisonarthur/3156396 to your computer and use it in GitHub Desktop.
Save deivisonarthur/3156396 to your computer and use it in GitHub Desktop.
Boleto Magento cód 01
<!-- 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 -->
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