Product Picture in Search Results

  • Posts: 50
  • Thank you received: 2
  • Hikashop Business
1 year 1 month 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: 22789
  • Thank you received: 3542
  • MODERATOR
1 year 1 month 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.069 seconds
Powered by Kunena Forum