Hi,
@MyWorld
For the back-end product images modify order / show_products.php and after line 103:
$manage = hikashop_isAllowed($this->config->get('acl_product_manage','all'));
add this:
$imageHelper = hikashop_get('helper.image');
$width = (int)$this->config->get('cart_thumbnail_x', 68);
$height = (int)$this->config->get('cart_thumbnail_y', 100);
$image_options = array(
'default' => true,
'forcesize' => $this->config->get('image_force_size', true),
'scale' => $this->config->get('image_scale_mode','inside')
);
and after line 117, after:
add this:
<td class="hikashop_order_item_image">
<?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="img-responsive" title="'.$this->escape(@$product->images[0]->file_description).'" alt="'.$this->escape(@$product->images[0]->file_name).'" src="'.$img->url.'"/>';
}?>
</td>
Now to show thumbs in front-end user order modify order / show.php and after line 165:
$group = $this->config->get('group_options',0);
add again:
$imageHelper = hikashop_get('helper.image');
$width = (int)$this->config->get('cart_thumbnail_x', 68);
$height = (int)$this->config->get('cart_thumbnail_y', 100);
$image_options = array(
'default' => true,
'forcesize' => $this->config->get('image_force_size', true),
'scale' => $this->config->get('image_scale_mode','inside')
);
and after line 173:
<tr class="row<?php echo $k;?>">
add this second part of the code:
<td class="hikashop_order_item_image">
<?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="img-responsive" title="'.$this->escape(@$product->images[0]->file_description).'" alt="'.$this->escape(@$product->images[0]->file_name).'" src="'.$img->url.'"/>';
}?>
</td>
If you did it right, you should have new column in your table with image thumbs.
If you want to modify thumbs hight or width, just change this numbers bellow:
$width = (int)$this->config->get('cart_thumbnail_x', 68);
$height = (int)$this->config->get('cart_thumbnail_y', 100);
I hope you success.
Thank you