Im experiencing a problem with a Payment module (librepag) witch follows:
The module has 2 template "info blocks" (that block with the payment details):
- used on the backend (app/design/adminhtml/base/default/template/librepag/info/cartao.phtml) - it has some action buttons that the customer shouldn't see
- used on the e-mail template (app/design/frontend/base/default/template/librepag/info/cartao.phtml)
When the customer make an order, the correct template (#2) is sent. But when we are at backend order view and click on Send Email button, the #1 is sent instead.
I noticed that in the module Model has the
protected $_formBlockType = 'librepag/form_cartao';
protected $_infoBlockType = 'librepag/info_cartao';
witch corresponds to this particular block
class Weblibre_Librepag_Block_Info_Cartao extends Mage_Payment_Block_Info_Ccsave
{
protected function _construct()
{
parent::_construct();
$this->setTemplate('librepag/info/cartao.phtml');
}
...
Why the system is sending different info blocks for the same sendNewOrderEmail method? I saw a similar thread, but didn't figured out how to simply specify another info block on email templates on this module.
Any help is appreciated.