Public Member Functions | |
getPaymentInfoHtml () | |
getOrder () | |
getBackUrl () | |
getInvoiceUrl ($order) | |
getShipmentUrl ($order) | |
getViewUrl ($order) | |
getPrintCreditmemoUrl ($creditmemo) | |
getPrintAllCreditmemosUrl ($order) | |
Protected Member Functions | |
_construct () | |
_prepareLayout () |
Definition at line 34 of file Creditmemo.php.
_construct | ( | ) | [protected] |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 36 of file Creditmemo.php.
00037 { 00038 parent::_construct(); 00039 $this->setTemplate('sales/order/creditmemo.phtml'); 00040 }
_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 42 of file Creditmemo.php.
00043 { 00044 if ($headBlock = $this->getLayout()->getBlock('head')) { 00045 $headBlock->setTitle($this->__('Order # %s', $this->getOrder()->getRealOrderId())); 00046 } 00047 $this->setChild( 00048 'payment_info', 00049 $this->helper('payment')->getInfoBlock($this->getOrder()->getPayment()) 00050 ); 00051 }
getBackUrl | ( | ) |
Definition at line 68 of file Creditmemo.php.
00069 { 00070 return Mage::getUrl('*/*/history'); 00071 }
getInvoiceUrl | ( | $ | order | ) |
Definition at line 73 of file Creditmemo.php.
00074 { 00075 return Mage::getUrl('*/*/invoice', array('order_id' => $order->getId())); 00076 }
getOrder | ( | ) |
Retrieve current order model instance
Definition at line 63 of file Creditmemo.php.
00064 { 00065 return Mage::registry('current_order'); 00066 }
getPaymentInfoHtml | ( | ) |
Definition at line 53 of file Creditmemo.php.
00054 { 00055 return $this->getChildHtml('payment_info'); 00056 }
getPrintAllCreditmemosUrl | ( | $ | order | ) |
Definition at line 92 of file Creditmemo.php.
00092 { 00093 return Mage::getUrl('*/*/printCreditmemo', array('order_id' => $order->getId())); 00094 }
getPrintCreditmemoUrl | ( | $ | creditmemo | ) |
Definition at line 88 of file Creditmemo.php.
00088 { 00089 return Mage::getUrl('*/*/printCreditmemo', array('creditmemo_id' => $creditmemo->getId())); 00090 }
getShipmentUrl | ( | $ | order | ) |
Definition at line 78 of file Creditmemo.php.
00079 { 00080 return Mage::getUrl('*/*/shipment', array('order_id' => $order->getId())); 00081 }
getViewUrl | ( | $ | order | ) |
Definition at line 83 of file Creditmemo.php.
00084 { 00085 return Mage::getUrl('*/*/view', array('order_id' => $order->getId())); 00086 }