Public Member Functions | |
getItem () | |
getOrderOptions () | |
getCustomizedOptionValue ($optionInfo) | |
getSku () |
Definition at line 35 of file Default.php.
getCustomizedOptionValue | ( | $ | optionInfo | ) |
Return custom option html
array | $optionInfo |
Definition at line 69 of file Default.php.
00070 { 00071 // render customized option view 00072 $_default = $optionInfo['value']; 00073 if (isset($optionInfo['option_type'])) { 00074 try { 00075 $group = Mage::getModel('catalog/product_option')->groupFactory($optionInfo['option_type']); 00076 return $group->getCustomizedView($optionInfo); 00077 } catch (Exception $e) { 00078 return $_default; 00079 } 00080 } 00081 return $_default; 00082 }
getItem | ( | ) |
Definition at line 37 of file Default.php.
00038 { 00039 if ($this->_getData('item') instanceof Mage_Sales_Model_Order_Item) { 00040 return $this->_getData('item'); 00041 } else { 00042 return $this->_getData('item')->getOrderItem(); 00043 } 00044 }
getOrderOptions | ( | ) |
Definition at line 46 of file Default.php.
00047 { 00048 $result = array(); 00049 if ($options = $this->getItem()->getProductOptions()) { 00050 if (isset($options['options'])) { 00051 $result = array_merge($result, $options['options']); 00052 } 00053 if (isset($options['additional_options'])) { 00054 $result = array_merge($result, $options['additional_options']); 00055 } 00056 if (!empty($options['attributes_info'])) { 00057 $result = array_merge($options['attributes_info'], $result); 00058 } 00059 } 00060 return $result; 00061 }
getSku | ( | ) |
Definition at line 84 of file Default.php.
00085 { 00086 if ($this->getItem()->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) { 00087 return $this->getItem()->getProductOptionByCode('simple_sku'); 00088 } 00089 return $this->getItem()->getSku(); 00090 }