<?php
$width = (int)$this->config->get('thumbnail_x');
$height = (int)$this->config->get('thumbnail_y');
$imageHelper = hikashop_get('helper.image');
$db = JFactory::getDBO();
$db->setQuery('SELECT * FROM '.hikashop_table('file').' WHERE `file_ref_id` = '.(int)$cart->product_id.' ORDER BY `file_ordering`');
$image = $db->loadObject();
if(is_object($image))
echo '<img src="' . $imageHelper->uploadFolder_url.'thumbnail_'.$width.'x'.$height.'/'.$image->file_path . '" alt="' . $image->file_name . '" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" />';
?>
<a href="<?php echo hikashop_completeLink('product&task=show&cid='.$cart->product_id.'&name='.$cart->alias.'&Itemid='.$Itemid); ?>">
<?php
if(!isset($cart->bought) || !$cart->bought){
echo $cart->product_name;
}else{
echo JHTML::tooltip(implode('<br />',$cart->bought), JText::_('HIKA_BOUGHT_BY'), '',$cart->product_name);
}
if($this->params->get('show_code')){
echo ' ('.$cart->product_code.')';
}
?>
</a>