DEpois de muito tempo eu consegui resolver esse problema, segue o código para quem quiser usar nos seu boletos caixa sigcb com segunda via.
Para que funcione copie cole esse codigo num edito e salve com o nome de boletocef.xml
instale o VQmode e coloque o arquivo em /public_html/vqmod/xml. vai funcionar
Código: Selecionar todos<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Boleto CEF - Segunda Via</id>
<version>1.4.x and 1.5.x</version>
<vqmver>2.x</vqmver>
<author>Estudio.VisualCode</author>
<file name="catalog/view/theme/*/template/account/order_info.tpl">
<operation error="skip">
<search position="before" offset="1"><![CDATA[
<div class="form-actions">
]]></search>
<add><![CDATA[
<?php
/**
* Apenas Exibe o Bloco se a Forma de Pagamento for "Boleto Caixa E. Federal" e o Ultimo Status for "Aguardando Pagamento"
*/
if ( ($payment_method == "Boleto Caixa E. Federal") && ($histories[(sizeof($histories) - 1)]['status'] == "Aguardando Pagamento") ) :
?>
<?php
$this->load->library('encryption'); /* Carrega a Biblioteca de Encriptacao */
$encryption = new Encryption($this->config->get('config_encryption')); /* Inicia a Nova Variavel de Encriptacao */
$idboleto = $encryption->encrypt($order_num); /* Gera a Criptografia de Acordo com o ID do Pedido */
?>
<h4>EMITIR SEGUNDA VIA DO BOLETO</h4>
<table class="table table-hover">
<thead>
<tr>
<td class="left">Método de Pagamento</td>
<td class="left">Ação</td>
</tr>
</thead>
<tbody>
<tr>
<td class="left"><?php echo $payment_method; ?></td>
<td class="left"><a href="index.php?route=payment/boletocef/callbackorder&order_id=<?php echo $idboleto; ?>" target="_blank">Gerar 2ª Via do Boleto</a></td>
</tr>
</tbody>
</table>
<?php endif; ?>
]]></add>
</operation>