getQuote();
?>
__('Item') ?> |
__('Sku') ?> |
__('Image') ?> |
__('Qty') ?> |
__('Subtotal') ?> |
getAllItems() as $_item): ?>
getParentItemId()) continue; else $i++; ?>
getProductType() == 'configurable' || $_item->getProductType() == 'bundle') :
$finalResult = array();
$result = array();
$options = $_item->getProduct()->getTypeInstance(true)->getOrderOptions($_item->getProduct());
// Check for options
if ($options) {
if (isset($options['options'])) {
$result = array_merge($result, $options['options']);
}
if (isset($options['additional_options'])) {
$result = array_merge($result, $options['additional_options']);
}
if (!empty($options['attributes_info'])) {
$result = array_merge($options['attributes_info'], $result);
}
if (isset($options['bundle_options'])) {
$productId = $_item->getProduct()->getId();
$bundled_product = Mage::getModel('catalog/product')->load($productId);
$selectionCollection = $bundled_product->getTypeInstance(true)->getSelectionsCollection(
$bundled_product->getTypeInstance(true)->getOptionsIds($bundled_product), $bundled_product
);
$bundled_items = array();
$label = '';
$qty = '';
foreach ($selectionCollection as $option) {
foreach ($options['bundle_options'] as $bundle) {
if ($bundle['value'][0]['title'] == $option->getName()) {
$label = $bundle['label'];
$qty = $bundle['value'][0]['qty'];
$aux_options[] = array('label' => $label, 'value' => $qty . ' x ' . $option->getName() . ' ' . Mage::helper('checkout')->formatPrice($option->getPrice()), 'sku' => $option->getSku());
}
}
}
$result = array_merge($result, $aux_options);
}
}
$options = array_merge($finalResult, $result);
endif; ?>
>
' . $_item['name']; ?>
' . $option['label'] . ' ' . $option['value'];
if (isset($option['sku'])) : echo ' ' . $option['sku']; endif; endforeach;
$options = null; endif; ?>
' . $_item['sku'] . ''; ?>
'; ?>
' . $_item['qty'] . ''; ?>
' . $this->getTax($_item) . ''; ?>