Skip to content

Instantly share code, notes, and snippets.

@deivisonarthur
Created July 21, 2012 17:42
Show Gist options
  • Save deivisonarthur/3156524 to your computer and use it in GitHub Desktop.
Save deivisonarthur/3156524 to your computer and use it in GitHub Desktop.
Boleto Magento cód 03
<!-- Deivison -->
<!-- Impressão do usuário -->
<?php
// Tava assi: $this->getPaymentInfoHtml() alterado para assim: $this->getPaymentInfoHtml()
//if ((strpos($this->getPaymentInfoHtml(), "Boleto") !== false) && ( $_order->getStatus() == $this->__(Mage::getStoreConfig('payment/boleto_bancario/order_status')) )) {
//Deivison Arthur - deivison.com.br
//veja mais sobre strpos em http://br.answers.yahoo.com/question/index?qid=20100221162434AAdk34n
if ( (strpos($this->getPaymentInfoHtml(), "Boleto") !== false) && $_order->getStatus() == "pending" ) {
$orderid = $_order->getId();
echo "<span style=\"float:left\">";
echo "<a style=\"color:#ffb81e\" href=\"" . $this->getUrl('boleto/standard/view/order_id/' . $orderid) . "\" class=\"link-cart\" onclick=\"this.target='_blank'\">Clique aqui para imprimir o Boleto</a></span>";
}
?>
<!-- Deivison -->
Adicionando o link da segunda via do boleto no painel de pedidos do cliente
6º – Abra o arquivo /app/design/frontend/SUA-TEMPLATE/default/template/sales/order/info.phtml perto da linha 106 terá a linha
getPaymentInfoHtml()
Coloque aqui o cód acima BoletoMagento03.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment