Product Picture in Search Results

  • Posts: 91
  • Thank you received: 5
7 years 3 months ago #274895

Maybe it's sth obvious now, but I managed to show images in search results easily, editing
/templates/{my_template}/html/com_search/search/default_results.php

and added

<?php if ($result->image) : ?>
		<dd class="result-image">
			<span class="search_img">
	
		<img
		<?php
		$link=$result->image; 
		?>	title="<?php echo $result->filedesc; ?>" src="<?php echo $link ?>" alt="<?php echo $result->filename; ?>" width="150" />
		</span>
		</dd>
	<?php endif; ?>

Nothing else was required

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 3 months ago #274910

Hello,

Yes, exactly.
It requires a modification (override) in Joomla side and that's not something that HikaShop can do ; because it just related to Joomla.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum