-- HikaShop version -- : 2.6.4
I would like to display the vendor image instead a text with link. I turned on display vendor name in the configuration. I searched for any post related in the subject, and I find only a half solution, what is not really works.
On the product page product / show_default I try to paste the following code (what I found
here
) in a div around the hikashop_product_price_with_options_main
<?php
$vendor_image = null;
$imageHelper = hikamarket::get('shop.helper.image');
if(!empty($this->vendor->vendor_image))
$vendor_image = $imageHelper->getThumbnail($this->vendor->vendor_image, array(100,100), array());
if(empty($vendor_image) || !$vendor_image->success)
$vendor_image = $imageHelper->getThumbnail($this->config->get('default_vendor_image', ''), array(100,100), array('default' => true), true);
?>
<img src="<?php echo @$vendor_image->url; ?>" alt=""/>