Created
October 16, 2013 14:27
-
-
Save ttribeiro/7008598 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php if (!strcmp ($cc_type, 'BOL_ITAU') || !strcmp ($cc_type, 'TEF_ITAU')): ?> | |
<form id="print-billet-form" method="get" target="_blank" action="https://shopline.itau.com.br/shopline/shopline.asp"> | |
<?php | |
$sql = " SELECT acquirer_transaction_id FROM payment_return WHERE order_id = " . $_order->getId (); | |
$resource = Mage::getSingleton ('core/resource'); | |
$connection = $resource->getConnection ('core_read'); | |
$store = $connection->query ($sql); | |
$children = $store->fetchAll (PDO::FETCH_ASSOC); | |
?> | |
<input type="hidden" name="DC" value="?DC=<?=$children[0]['acquirer_transaction_id'];?>" /> | |
<input type="submit" value="Imprimir o boleto novamente" /> | |
</form> | |
<form id="query-billet-form" method="get" target="_blank" action="https://shopline.itau.com.br/shopline/consulta.asp"> | |
<?php | |
$sql = " SELECT acquirer_transaction_id FROM payment_return WHERE order_id = " . $_order->getId (); | |
$resource = Mage::getSingleton ('core/resource'); | |
$connection = $resource->getConnection ('core_read'); | |
$store = $connection->query ($sql); | |
$children = $store->fetchAll (PDO::FETCH_ASSOC); | |
?> | |
<input type="hidden" name="DC" value="?DC=<?=$children[0]['acquirer_transaction_id'];?>" /> | |
<input type="submit" value="Consultar o pagamento do boleto" /> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment