Public Member Functions | |
getPaymentInfoHtml () | |
getOrder () | |
getBackUrl () | |
getInvoiceUrl ($order) | |
getViewUrl ($order) | |
getCreditmemoUrl ($order) | |
getPrintShipmentUrl ($shipment) | |
getPrintAllShipmentsUrl ($order) | |
Protected Member Functions | |
_construct () | |
_prepareLayout () |
Definition at line 34 of file Shipment.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 Shipment.php.
00037 { 00038 parent::_construct(); 00039 $this->setTemplate('sales/order/shipment.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 Shipment.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 Shipment.php.
00069 { 00070 return Mage::getUrl('*/*/history'); 00071 }
getCreditmemoUrl | ( | $ | order | ) |
Definition at line 83 of file Shipment.php.
00084 { 00085 return Mage::getUrl('*/*/creditmemo', array('order_id' => $order->getId())); 00086 }
getInvoiceUrl | ( | $ | order | ) |
Definition at line 73 of file Shipment.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 Shipment.php.
00064 { 00065 return Mage::registry('current_order'); 00066 }
getPaymentInfoHtml | ( | ) |
Definition at line 53 of file Shipment.php.
00054 { 00055 return $this->getChildHtml('payment_info'); 00056 }
getPrintAllShipmentsUrl | ( | $ | order | ) |
Definition at line 93 of file Shipment.php.
00093 { 00094 return Mage::getUrl('*/*/printShipment', array('order_id' => $order->getId())); 00095 }
getPrintShipmentUrl | ( | $ | shipment | ) |
Definition at line 89 of file Shipment.php.
00089 { 00090 return Mage::getUrl('*/*/printShipment', array('shipment_id' => $shipment->getId())); 00091 }
getViewUrl | ( | $ | order | ) |
Definition at line 78 of file Shipment.php.
00079 { 00080 return Mage::getUrl('*/*/view', array('order_id' => $order->getId())); 00081 }