Public Member Functions | |
getOrder () | |
getItemOptions () | |
getValueHtml ($value) | |
getSku ($item) |
Definition at line 35 of file Default.php.
getItemOptions | ( | ) |
Definition at line 47 of file Default.php.
00048 { 00049 $result = array(); 00050 if ($options = $this->getItem()->getOrderItem()->getProductOptions()) { 00051 if (isset($options['options'])) { 00052 $result = array_merge($result, $options['options']); 00053 } 00054 if (isset($options['additional_options'])) { 00055 $result = array_merge($result, $options['additional_options']); 00056 } 00057 if (isset($options['attributes_info'])) { 00058 $result = array_merge($result, $options['attributes_info']); 00059 } 00060 } 00061 00062 return $result; 00063 }
getOrder | ( | ) |
Retrieve current order model instance
Definition at line 42 of file Default.php.
getSku | ( | $ | item | ) |
Definition at line 74 of file Default.php.
00075 { 00076 if ($item->getOrderItem()->getProductOptionByCode('simple_sku')) 00077 return $item->getOrderItem()->getProductOptionByCode('simple_sku'); 00078 else 00079 return $item->getSku(); 00080 }
getValueHtml | ( | $ | value | ) |
Definition at line 65 of file Default.php.
00066 { 00067 if (is_array($value)) { 00068 return sprintf('%d', $value['qty']) . ' x ' . $this->htmlEscape($value['title']) . " " . $this->getItem()->getOrder()->formatPrice($value['price']); 00069 } else { 00070 return $this->htmlEscape($value); 00071 } 00072 }