Skip to main content

Product Picture in Search Results

9 years 3 months ago #274895 by bolando
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
Code:
<?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.

9 years 3 months ago #274910 by Jerome
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.

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

Time to create page: 0.048 seconds
Powered by Kunena Forum