Created
July 21, 2012 17:42
-
-
Save deivisonarthur/3156524 to your computer and use it in GitHub Desktop.
Boleto Magento cód 03
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 --> | |
<!-- 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 --> |
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 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