[Skip to main content](#vessel-content)

#   Product Picture in Search Results

##

- **[vegabe](/forum/user/1643-vegabe "View vegabe's Profile")**
- [![vegabe's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1643-vegabe "View vegabe's Profile") Topic Author
- [ Offline](/forum/user/1643-vegabe)

Less More

- Posts: 4
- Thank you received: 0
-
-

15 years 8 months ago [\#11250](#11250) by [vegabe](/forum/user/1643-vegabe "View vegabe's Profile")  *[Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#11250 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")* was created by *[vegabe](/forum/user/1643-vegabe "View vegabe's Profile")*

Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

15 years 8 months ago [\#11252](#11252) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#11252 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

You can have a search that only retrieves the hikashop products. Just unpublish the other joomla search plugins in the joomla plugin manager.

You cannot have images in the search results unless you edit both the code of the hikashop product search plugin and the search results view to add that functionality.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vegabe](/forum/user/1643-vegabe "View vegabe's Profile")**
- [![vegabe's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1643-vegabe "View vegabe's Profile") Topic Author
- [ Offline](/forum/user/1643-vegabe)

Less More

- Posts: 4
- Thank you received: 0
-
-

15 years 8 months ago [\#11313](#11313) by [vegabe](/forum/user/1643-vegabe "View vegabe's Profile")  Replied by *[vegabe](/forum/user/1643-vegabe "View vegabe's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#11313 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

I would be willing to edit that code, is it something difficult to do? also, is it code that has to be edited per product item, or just twice? can you help direct me on where I need to edit this code exactly and what I need to edit it to? Also, I would ideally like to have an "Add to Cart" button appear with each product in the search result, as well as on each product page.

Sorry, just learning Joomla right now, so I am extremely ignorant when it comes to some things that are most likely very obvious.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

15 years 8 months ago [\#11316](#11316) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#11316 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

If you don't know how to do it, that means that it will be difficult for you to do those changes. You would have first to load the images data of the results in the hikashop product search plugin and then add the HTML code to display the image in the view file of the search component of joomla.
We can't give you more advice than this. This is a support forum, not a customization forum. If you want us to do it for you, you can contact us via our contact form and we will give you a quote.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Milli05](/forum/user/32640-milli05 "View Milli05's Profile")**
- [![Milli05's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32640.jpg)](/forum/user/32640-milli05 "View Milli05's Profile")
- [ Offline](/forum/user/32640-milli05)

Less More

- Posts: 17
- Thank you received: 6
-
-
-
- [](http://www.ketsh.hu)
-

12 years 4 months ago [\#164811](#164811) by [Milli05](/forum/user/32640-milli05 "View Milli05's Profile")  Replied by *[Milli05](/forum/user/32640-milli05 "View Milli05's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#164811 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

These are the modifications I have made on one of our site. I hope it will be helpful for some of you:

In /plugins/search/hikashop_products/hikashop_product.php
Line: 117 Code:

$leftjoin=' INNER JOIN '.hikashop_table('product_category').' AS b ON a.product_id=b.product_id LEFT JOIN '.hikashop_table('file').' as f ON a.product_id = f.file_ref_id';

Here I query the images as well.

Then I had template overrides for the search already, so in
/templates/html/com_search/search/default_results.php
around Line: 28

&lt;?php Code:

if($result-&gt;path) { ?&gt; &lt;span class="search_img"&gt; &lt;img &lt;?php $link=JURI::root().'media/com_hikashop/upload/'.$result-&gt;path; ?&gt; title="&lt;?php echo $result-&gt;filedesc; ?&gt;" src="&lt;?php echo $link ?&gt;" alt="&lt;?php echo $result-&gt;filename; ?&gt;" width="150" /&gt; &lt;/span&gt; &lt;?php } ?&gt;

Here I have placed the image in the search result. Then it has to be styled in css.
I do not guarantee that it is compatible with hikashop, and apologize for that, it just worked for me with the settings I have done in the webshop.

---

Web developer at Ketsh Web
[ www.ketsh.hu](http://www.ketsh.hu)

The following user(s) said Thank You: [sax](/forum/user/6223-sax "View sax's Profile"), [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile"), [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")**
- [![conticreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12955-conticreative "View conticreative's Profile")
- [ Offline](/forum/user/12955-conticreative)

Less More

- Posts: 214
- Thank you received: 7
-
-

12 years 3 months ago [\#165749](#165749) by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")  Replied by *[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#165749 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

Hi, is there a chance you could document this change (especially the one in /plugins/search/hikashop_products/hikashop_product.php) with the actual current code and your change?
My line numbers bust be completely screwed up. I found a similar area, but I am not quite sure if it is correct and what I should do with it.
Code:

if($variants){ $leftjoin=' INNER JOIN '.hikashop_table('product_category').' AS b ON a.product_parent_id=b.product_id OR a.product_id=b.product_id'; }else{ $leftjoin=' INNER JOIN '.hikashop_table('product_category').' AS b ON a.product_id=b.product_id'; }

Honestly, I am a bit baffled by the code in /templates/[my_template]/html/com_search/search/default_results.php

I don't understand where those valuables are getting their values, but that could stem by having the other code in the wrong place.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Milli05](/forum/user/32640-milli05 "View Milli05's Profile")**
- [![Milli05's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32640.jpg)](/forum/user/32640-milli05 "View Milli05's Profile")
- [ Offline](/forum/user/32640-milli05)

Less More

- Posts: 17
- Thank you received: 6
-
-
-
- [](http://www.ketsh.hu)
-

12 years 3 months ago [\#165755](#165755) by [Milli05](/forum/user/32640-milli05 "View Milli05's Profile")  Replied by *[Milli05](/forum/user/32640-milli05 "View Milli05's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#165755 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

I have attached the files I have modified.

---

Web developer at Ketsh Web
[ www.ketsh.hu](http://www.ketsh.hu)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")**
- [![conticreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12955-conticreative "View conticreative's Profile")
- [ Offline](/forum/user/12955-conticreative)

Less More

- Posts: 214
- Thank you received: 7
-
-

12 years 3 months ago [\#165802](#165802) by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")  Replied by *[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#165802 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

Thank you. You are an angel. I'll let you know how it works.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")**
- [![conticreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12955-conticreative "View conticreative's Profile")
- [ Offline](/forum/user/12955-conticreative)

Less More

- Posts: 214
- Thank you received: 7
-
-

12 years 3 months ago [\#165818](#165818) by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")  Replied by *[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")* on topic *[Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#165818 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

First of all, I realize you are busy and I don't want you to waste too much time on this. Please reply only if you really want to.

Unfortunately, it appears that my default_results.php override is radically different from yours.
So I ended up using your code snippet from the forum and using the default Joomla default_results.php from com_search instead of the override in my template and that worked out better. It's more similar to your example.

At the same time, I am not getting any images in the results and in playing with the code I realized that none of the variable in your code here:
Code:

&lt;?php if($result-&gt;path) { ?&gt; &lt;span class="search_img"&gt; &lt;img &lt;?php $link=JURI::root().'media/com_hikashop/upload/'.$result-&gt;path; ?&gt; title="&lt;?php echo $result-&gt;filedesc; ?&gt;" src="&lt;?php echo $link ?&gt;" alt="&lt;?php echo $result-&gt;filename; ?&gt;" width="150" /&gt; &lt;/span&gt; &lt;?php } ?&gt;

Have a value. Mainly I think I am missing $result-&gt;path because it looks like it sets the rest of the variable in the image.
I have tried to echo each of those variable individually but all I get are blanks.

1) Could be that I am supposed to turn something on in the search plugin that will provide a value for the images from the DB?
2) Is it possible that in your override there is some code that already establishes those variables (and missing that, I get empty fields?)
3) or it could be I am just a moron, in which case eventually I'll figure it out.

Again, feel free to leave it at this if it's too much work for you. Eventually I'll figure it out. I feel I am really close.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Milli05](/forum/user/32640-milli05 "View Milli05's Profile")**
- [![Milli05's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32640.jpg)](/forum/user/32640-milli05 "View Milli05's Profile")
- [ Offline](/forum/user/32640-milli05)

Less More

- Posts: 17
- Thank you received: 6
-
-
-
- [](http://www.ketsh.hu)
-

12 years 3 months ago [\#165967](#165967) by [Milli05](/forum/user/32640-milli05 "View Milli05's Profile")  Replied by *[Milli05](/forum/user/32640-milli05 "View Milli05's Profile")* on topic *[Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#165967 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

Hi, Sorry, I have forgotten that I had made 2 changes in
/plugin/search/hikashop_products/hikashop_products.php

Firt: line117:
Code:

$leftjoin=' INNER JOIN '.hikashop_table('product_category').' AS b ON a.product_id=b.product_id LEFT JOIN '.hikashop_table('file').' as f ON a.product_id = f.file_ref_id';

I have joined the table.

Second:
line:183: Code:

$select = ' a.product_id AS id, a.product_name, a.product_created AS created , a.product_description, "'.$new_page.'" AS browsernav, f.file_path AS path, f.file_description as filedesc, f.file_name AS filename';

Added the 3 additional fields: file_path, file_description, file_name.
Hope it helps.

---

Web developer at Ketsh Web
[ www.ketsh.hu](http://www.ketsh.hu)

The following user(s) said Thank You: [Alexandre](/forum/user/29959-alexandre "View Alexandre's Profile"), [hactic](/forum/user/32281-hactic "View hactic's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vinu](/forum/user/35890-vinu "View vinu's Profile")**
- [![vinu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35890-vinu "View vinu's Profile")
- [ Offline](/forum/user/35890-vinu)

Less More

- Posts: 10
- Thank you received: 0
-
-

11 years 10 months ago [\#188112](#188112) by [vinu](/forum/user/35890-vinu "View vinu's Profile")  Replied by *[vinu](/forum/user/35890-vinu "View vinu's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188112 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

hi

we have try to Product Picture in Search Results ( joomla default search page.)

please check my website nflmerch. com

can you please help me ?

Thanks
Deepz

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

11 years 10 months ago [\#188132](#188132) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188132 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

Hi,

Alternatively, you can use the filters system of HikaShop instead of the search system of Joomla for your products search. The filters system supports the display of products images in the results:
[ www.hikashop.com/support/support/documen...-filter-listing.html](https://www.hikashop.com/support/support/documentation/100-hikashop-filter-listing.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vinu](/forum/user/35890-vinu "View vinu's Profile")**
- [![vinu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35890-vinu "View vinu's Profile")
- [ Offline](/forum/user/35890-vinu)

Less More

- Posts: 10
- Thank you received: 0
-
-

11 years 10 months ago [\#188161](#188161) by [vinu](/forum/user/35890-vinu "View vinu's Profile")  Replied by *[vinu](/forum/user/35890-vinu "View vinu's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188161 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

thanks for your reply.

What i want ?

please check this screen shots. And please help me.

waiting for your biggest Help.

Thanks
Vinu

- [ ![chec-page2.png](/forum/attachment/21917) ](/forum/attachment/21917 "chec-page2.png") [ ](/forum/attachment/21917?download=1 "chec-page2.png")
- [ ![chec-page1.png](/forum/attachment/21918) ](/forum/attachment/21918 "chec-page1.png") [ ](/forum/attachment/21918?download=1 "chec-page1.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 10 months ago [\#188188](#188188) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188188 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

Hi,

In the search plugin you have to get the product images, you can see how it is working in the view "product / show_block_img".
You will potentially have to get the full product php object before looking for its attached images.
Code:

/* You will potentially have to use two different codes, one for the products and one for the categories */ $ids = array(); // fill it with the ids of the products returned in the search $imgAddress = array(); $imageHelper = hikashop_get('helper.image'); $productClass = hikashop_get('class.hikashop'); $productsData = $productClass-&gt;get($ids); foreach($productsData as $product){ $image = reset($product-&gt;images); $imgAddress[$id] = '/mainPath/'.$image-&gt;file_path; }

And then for each results get the image path from the previously created array.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vinu](/forum/user/35890-vinu "View vinu's Profile")**
- [![vinu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35890-vinu "View vinu's Profile")
- [ Offline](/forum/user/35890-vinu)

Less More

- Posts: 10
- Thank you received: 0
-
-

11 years 10 months ago [\#188284](#188284) by [vinu](/forum/user/35890-vinu "View vinu's Profile")  Replied by *[vinu](/forum/user/35890-vinu "View vinu's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188284 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

where can i add this code ?

i don't know coding.

Please help me.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vinu](/forum/user/35890-vinu "View vinu's Profile")**
- [![vinu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35890-vinu "View vinu's Profile")
- [ Offline](/forum/user/35890-vinu)

Less More

- Posts: 10
- Thank you received: 0
-
-

11 years 10 months ago -  11 years 10 months ago [\#188287](#188287) by [vinu](/forum/user/35890-vinu "View vinu's Profile")  Replied by *[vinu](/forum/user/35890-vinu "View vinu's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188287 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

which place i will add this code ?

it's for /templates/template/html/com_search/search/ default_results.php file.

please help me
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.0 * @author hikashop.com * @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;dl class="search-results&lt;?php echo $this-&gt;pageclass_sfx; ?&gt;"&gt; &lt;?php foreach ($this-&gt;results as $result) : ?&gt; &lt;!--Dave's code for IMAGES &lt;?php echo '&lt;div style="float: left;margin: 5px 10px;"&gt;&lt;img src="'. $this-&gt;escape($result-&gt;image).'" alt="" /&gt;&lt;/div&gt;';?&gt; end Dave's code --&gt; &lt;dt class="result-title"&gt; &lt;?php echo $this-&gt;pagination-&gt;limitstart + $result-&gt;count.'. ';?&gt; &lt;img src="&lt;?php echo JRoute::_($result-&gt;image); ?&gt;"&gt; &lt;?php if ($result-&gt;href) :?&gt; &lt;a href="&lt;?php echo JRoute::_($result-&gt;href); ?&gt;"&gt; &lt;?php echo $this-&gt;escape($result-&gt;title);?&gt; &lt;/a&gt; &lt;?php else:?&gt; &lt;?php echo $this-&gt;escape($result-&gt;title);?&gt; &lt;?php endif; ?&gt; &lt;/dt&gt; &lt;!--Dave commented out &lt;/*?php if ($result-&gt;section) : ?*/&gt; &lt;dd class="result-category"&gt; &lt;span class="small&lt;/*?php echo $this-&gt;pageclass_sfx; ?&gt;"*/&gt; (&lt;/*?php echo $this-&gt;escape($result-&gt;section); ?&gt;*/) &lt;/span&gt; &lt;/dd&gt; &lt;/*?php endif; ?*/&gt; end dave comment out--&gt; &lt;dd class="result-text"&gt; &lt;?php echo $result-&gt;text; ?&gt; &lt;/dd&gt; &lt;?php if ($this-&gt;params-&gt;get('show_date')) : ?&gt; &lt;dd class="result-created&lt;?php echo $this-&gt;pageclass_sfx; ?&gt;"&gt; &lt;?php echo JText::sprintf('JGLOBAL_CREATED_DATE_ON', $result-&gt;created); ?&gt; &lt;/dd&gt; &lt;?php endif; ?&gt; &lt;!--Dave's code for IMAGES &lt;?php echo '&lt;div style="clear:both"&gt;&lt;/div&gt;'; ?&gt; end Dave's code--&gt; &lt;br&gt; &lt;?php endforeach; ?&gt; &lt;/dl&gt; &lt;div class="pagination"&gt; &lt;?php echo $this-&gt;pagination-&gt;getPagesLinks(); ?&gt; &lt;/div&gt;

Last edit: 11 years 10 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile"). Reason: Use of [code]...[/code] tags

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 10 months ago [\#188305](#188305) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188305 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

Hi,

The given code is not complete, it require more elements, more php loops etc.
So if you are not a developer we recommend to:
- Use the default search
- Use the hikashop filters instead of the search
- Post a request on the commercial jobs section of this forum
- Ask to a third developer

The following user(s) said Thank You: [vinu](/forum/user/35890-vinu "View vinu's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vinu](/forum/user/35890-vinu "View vinu's Profile")**
- [![vinu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35890-vinu "View vinu's Profile")
- [ Offline](/forum/user/35890-vinu)

Less More

- Posts: 10
- Thank you received: 0
-
-

11 years 10 months ago [\#188385](#188385) by [vinu](/forum/user/35890-vinu "View vinu's Profile")  Replied by *[vinu](/forum/user/35890-vinu "View vinu's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188385 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

thanks for your reply.

Once you check this link

[ www.nflmerch.com/component/search/?searc...hrase=all&amp;Itemid=103](http://www.nflmerch.com/component/search/?searchword=Arizona%20Cardinals&searchphrase=all&Itemid=103)

we have using default search (joomla)

But i want show product images or thumbs

can you help me ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

11 years 9 months ago [\#188457](#188457) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188457 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

The default search of Joomla doesn't support images display.
If you need that and you're not a developer and you don't want to pay one for that customization, you're left with two options:
1. You use the HikaShop filter system which can do that.
2. You try to find another search extension which is compatible with HikaShop and which supports the images display.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vinu](/forum/user/35890-vinu "View vinu's Profile")**
- [![vinu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35890-vinu "View vinu's Profile")
- [ Offline](/forum/user/35890-vinu)

Less More

- Posts: 10
- Thank you received: 0
-
-

11 years 9 months ago [\#188466](#188466) by [vinu](/forum/user/35890-vinu "View vinu's Profile")  Replied by *[vinu](/forum/user/35890-vinu "View vinu's Profile")* on topic *[Re: Product Picture in Search Results](/forum/4-how-to/11250-product-picture-in-search-results#188466 "Is it possible to do a search that only retrieves hikashop products and populates the search results with a thumbnail image and title for said products?")*

Thanks for your reply

can you please tell me

have any another search extension which is compatible with HikaShop and which supports the images display ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExMjUwLXByb2R1Y3QtcGljdHVyZS1pbi1zZWFyY2gtcmVzdWx0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.129 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
