Public Member Functions | |
getOrderStoreName () | |
getCustomerGroupName () | |
getCustomerViewUrl () | |
getViewUrl ($orderId) | |
Protected Member Functions | |
_beforeToHtml () |
Definition at line 34 of file Info.php.
_beforeToHtml | ( | ) | [protected] |
Retrieve required options from parent
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 39 of file Info.php.
00040 { 00041 if (!$this->getParentBlock()) { 00042 Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block')); 00043 } 00044 $this->setOrder($this->getParentBlock()->getOrder()); 00045 00046 foreach ($this->getParentBlock()->getOrderInfoData() as $k => $v) { 00047 $this->setDataUsingMethod($k, $v); 00048 } 00049 00050 parent::_beforeToHtml(); 00051 }
getCustomerGroupName | ( | ) |
Definition at line 71 of file Info.php.
00072 { 00073 if ($this->getOrder()) { 00074 return Mage::getModel('customer/group')->load((int)$this->getOrder()->getCustomerGroupId())->getCode(); 00075 } 00076 return null; 00077 }
getCustomerViewUrl | ( | ) |
getOrderStoreName | ( | ) |
Definition at line 53 of file Info.php.
00054 { 00055 if ($this->getOrder()) { 00056 $storeId = $this->getOrder()->getStoreId(); 00057 if (is_null($storeId)) { 00058 return nl2br($this->getOrder()->getStoreName()); 00059 } 00060 $store = Mage::app()->getStore($storeId); 00061 $name = array( 00062 $store->getWebsite()->getName(), 00063 $store->getGroup()->getName(), 00064 $store->getName() 00065 ); 00066 return implode('<br/>', $name); 00067 } 00068 return null; 00069 }
getViewUrl | ( | $ | orderId | ) |