- Posts: 4
- Thank you received: 0
Product Picture in Search Results
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
In /plugins/search/hikashop_products/hikashop_product.php
Line: 117
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
<?php
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
Please Log in or Create an account to join the conversation.
- Posts: 214
- Thank you received: 7
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.
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 or Create an account to join the conversation.
Web developer at Ketsh Web
www.ketsh.hu
Please Log in or Create an account to join the conversation.
- Posts: 214
- Thank you received: 7
Please Log in or Create an account to join the conversation.
- Posts: 214
- Thank you received: 7
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:
Have a value. Mainly I think I am missing $result->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 or Create an account to join the conversation.
/plugin/search/hikashop_products/hikashop_products.php
Firt: line117:
I have joined the table.
Second:
line:183:
Added the 3 additional fields: file_path, file_description, file_name.
Hope it helps.
Web developer at Ketsh Web
www.ketsh.hu
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
What i want ?
please check this screen shots. And please help me.
waiting for your biggest Help.
Thanks
Vinu
Please Log in or Create an account to join the conversation.
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.
And then for each results get the image path from the previously created array.
Please Log in or Create an account to join the conversation.
i don't know coding.
Please help me.
Please Log in or Create an account to join the conversation.
it's for /templates/template/html/com_search/search/ default_results.php file.
please help me
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
Once you check this link
www.nflmerch.com/component/search/?searc...hrase=all&Itemid=103
we have using default search (joomla)
But i want show product images or thumbs
can you help me ?
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
can you please tell me
have any another search extension which is compatible with HikaShop and which supports the images display ?
Please Log in or Create an account to join the conversation.