I recently purchased some templates from theme forest. https://codecanyon.net/item/magento-custom-email-templates-pro/19175962?s_rank=2
installed on the server and all is working great, I noticed in the code the images (thumbnails) were not showing up.
The code looks like this here,
foreach ($wa_data['items'] as $key => $value) {
$vars = get_object_vars ($value);
$_product = Mage::getModel('catalog/product')
->setStoreId($value->getOrder()->getStoreId())
->load($value->getProductId());
$item = array(
'url' => $_product->getProductUrl(),
'imgUrl' => Mage::getModel('catalog/product_media_config')
->getMediaUrl($_product->getThumbnail()),
'name' => $value->getName(),
'sku' => $vars['_data']['sku'],
'description' => $vars['_data']['description'],
'number' => $vars ['_data']['product_id'],
'qty' => intval($vars['_data']['qty_ordered']),
'price' => $wa_data['symbol'] . ' ' . intval($vars['_data']['base_price']),
'total' => $wa_data['symbol'] . ' ' . intval($vars['_data']
['base_row_total']),
);
$wa_data['items'][$key] = $item;
}
I'm wondering if there is an issue here,
'imgUrl' => Mage::getModel('catalog/product_media_config')
->getMediaUrl($_product->getThumbnail()),
on the image in the code it looks like this here,
<a href="<?php echo $_item['url']; ?>"><img src="<?php echo $_item['imgUrl'] ?>" alt="<?php echo $_item['name'] ?>" />
Can you please help me get these thumbnails working. I'm using Magento 1.9.3
Any help understanding what is would be highly appreciated