Public Member Functions | |
getPaymentInfoHtml () | |
getOrder () | |
Protected Member Functions | |
_prepareLayout () | |
_prepareItem (Mage_Core_Block_Abstract $renderer) |
Definition at line 34 of file Print.php.
_prepareItem | ( | Mage_Core_Block_Abstract $ | renderer | ) | [protected] |
Prepare item before output
Mage_Core_Block_Abstract | $renderer |
Reimplemented from Mage_Sales_Block_Items_Abstract.
Definition at line 57 of file Print.php.
00058 { 00059 $renderer->setPrintStatus(true); 00060 00061 return parent::_prepareItem($renderer); 00062 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 36 of file Print.php.
00037 { 00038 if ($headBlock = $this->getLayout()->getBlock('head')) { 00039 $headBlock->setTitle($this->__('Print Order # %s', $this->getOrder()->getRealOrderId())); 00040 } 00041 $this->setChild( 00042 'payment_info', 00043 $this->helper('payment')->getInfoBlock($this->getOrder()->getPayment()) 00044 ); 00045 }
getOrder | ( | ) |
Definition at line 52 of file Print.php.
00053 { 00054 return Mage::registry('current_order'); 00055 }
getPaymentInfoHtml | ( | ) |
Definition at line 47 of file Print.php.
00048 { 00049 return $this->getChildHtml('payment_info'); 00050 }