Code: Select all
Model File : \catalog\model\checkout\order.php
Code: Select all
TPL File : \catalog\view\theme\journal2\template\mail\order.tpl
First, on order.php, around 548. line, under the code
Code: Select all
foreach ($order_product_query->rows as $product) {
$option_data = array();
I added:
Code: Select all
foreach ($order_product_query->rows as $order_product) {
$product_info = $this->model_catalog_product->getProduct($order_product['product_id']);
if ($product_info['image']) {
$thumbbuyuk = $this->model_tool_image->resize($product_info['image'], 130, 130);
} else {
$thumbbuyuk = '';
}
}
Code: Select all
$data['products'][] = array(
Code: Select all
'thumbbuyuk' => $thumbbuyuk,
'href' => $this->url->link('product/product', 'product_id=' .$product_info['product_id']),
Code: Select all
<p style="margin-top: 0px; margin-bottom: 20px;"><?php echo $text_greeting; ?></p>
Code: Select all
<div style="text-align:center;">
<?php foreach ($products as $product) { ?>
<?php if ($product['thumbbuyuk']) { ?>
<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumbbuyuk']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-thumbnail" /></a>
<?php } ?>
<?php } ?>
</div>