<?php
$k=0;
$group = $this->config->get('group_options',0);
$productClass = hikashop_get('class.product');
$imageHelper = hikashop_get('helper.image');
$width = (int)$this->config->get('cart_thumbnail_x', 100);
$height = (int)$this->config->get('cart_thumbnail_y', 144);
$image_options = array(
'default' => true,
'forcesize' => $this->config->get('image_force_size', true),
'scale' => $this->config->get('image_scale_mode','inside')
);
foreach($this->order->products as $product) {
if(!empty($product->product_id) && !empty($this->products[ (int)$product->product_id ]))
$productData = $this->products[ (int)$product->product_id ];
if($group && $product->order_product_option_parent_id)
continue;
?>
<tr class="row<?php echo $k;?>">
<td class="hikashop_cart_product_image_value hikashop_cart_product_name_value">
<div class="hikashop_cart_product_image_thumb">
<a class="hikashop_order_product_link" href="<?php echo hikashop_contentLink('product&task=show&cid='.$product->product_id.$url_itemid, $productData); ?>">
<?php
$image_path = (!empty($product->images) ? @$product->images[0]->file_path : '');
$img = $imageHelper->getThumbnail($image_path, array('width' => $width, 'height' => $height), $image_options);
if($img->success) {
echo '<img class="hikashop_cart_product_image" title="'.$this->escape(@$product->images[0]->file_description).'" alt="'.$this->escape(@$product->images[0]->file_name).'" src="'.$img->url.'" style="float:left; margin-right:3px;" />';
}
?>
</a>
</div>
<div class="hikashop_cart_product_name"><h3>
<a class="hikashop_order_product_link" href="<?php echo hikashop_contentLink('product&task=show&cid='.$product->product_id.$url_itemid, $productData); ?>">
<?php if($productData->product_parent_id){
echo $productClass->get($product->product_parent_id)->product_name;
} ?>
<?php if($this->config->get('show_code')) { ?>
<span class="hikashop_product_code_order"><?php echo $product->order_product_code; ?></span>
<?php } ?>