Search Plugin - Format Results

  • Posts: 149
  • Thank you received: 0
12 years 6 months ago #53809

Hi,

I am interested in formating results send back from "HikaShop products search plugin". I need to
1. Also display the image of the products
2. Display custom fields as well

Can you let me know if this is possible to do and how?

Thanks

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

  • Posts: 83049
  • Thank you received: 13408
  • MODERATOR
12 years 6 months ago #53873

Hi,

The results are displayed by Joomla in a view of com_search. You will have a hard time trying to do it.

One simpler approach is to use a filter like we did on our demo website's home page with the hikashop filter module near the bottom:
www.demo.hikashop.com/index.php?lang=en

It uses the filtering system coupled with a standard HikaShop products listing menu so that you can easily configure the display of the result products like you do with your products listings:
www.hikashop.com/en/support/documentatio...-filter-listing.html

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

  • Posts: 149
  • Thank you received: 0
12 years 6 months ago #53906

hello nicolas,

that was our initial aproach but we stoped using the filter for that purpose cause when you are searching a product within a category then the returned results are coming only from that category. We need a global, everywhere search

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

  • Posts: 83049
  • Thank you received: 13408
  • MODERATOR
12 years 6 months ago #53990

Create a "search" menu item of the type hikashop products listing and make it display all your products.
Then, add your filters to it and the filters will filter on all your products.

The following user(s) said Thank You: gili

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

  • Posts: 51
  • Thank you received: 0
11 years 7 months ago #106918

hello
i used the filters as u described for the products and works perfect
now what i want to do is to filter by category_name
for example in a book store i want to search for the brand or the writer
the brand equals to manufacturer (at my case) and the writer equals to categories (NOT products)
so when i put the name e.g. of a writer to filter all the category_name and give me that writer

thanx

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #107044

Hello,

You can create categories for each brands, and add this category to the books, then you have to enable the hikazshop category search plugin.
When doing a search it will display the related categories, so the brand or writer.

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

  • Posts: 51
  • Thank you received: 0
11 years 7 months ago #107122

i k now that but its not what i want because the results are joomla format
i want the results to be like hikashop format ... i mean like products which happens only with filter

when i setup a filter there is an option which sais : "apply on" and there i can choose product_name etc .... is nt any way to go to the code and besides product_somehting to put manually category_name ???? wouldnt it work ?????

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

  • Posts: 83049
  • Thank you received: 13408
  • MODERATOR
11 years 7 months ago #107193

Hi,

You can already create filters which apply on categories:



So there is no need to change any code.

Attachments:

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

  • Posts: 51
  • Thank you received: 0
11 years 7 months ago #107326

i dont have these options .............
apply on ... i have only product options

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

  • Posts: 83049
  • Thank you received: 13408
  • MODERATOR
11 years 7 months ago #107360

Can you do a screenshot please ?

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

  • Posts: 51
  • Thank you received: 0
11 years 7 months ago #107419
Attachments:

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

  • Posts: 51
  • Thank you received: 0
11 years 7 months ago #107421

i d also like to ask another question.. in the filter i created is there any way to filter the whole phrase instead of each word ?????
eg. search for "good morning" instead of "good" "morning" ?????

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #107454

Hi,

For the filter it depends on the filter type. You have to select "dropdown" or "checkbox" to filter on categories.
You don't have to set values, it will get the available categories by default.

Regarding the search, it's based on the Joomla search, so there is maybe an option in the joomla configuration for that.

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

  • Posts: 51
  • Thank you received: 0
11 years 7 months ago #107470

i want to have it as text not as dropdown cause its more than 5000 categories

about search i set it up like filter not like joomla search .. so i must do it some how in the filter configuration

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

  • Posts: 83049
  • Thank you received: 13408
  • MODERATOR
11 years 7 months ago #107512

It's not possible to filter products with the user entering themselves the text of the categories.

For your second question, you can do like that:
www.hikashop.com/en/forum/4-how-to/78966...-a-phrase.html#93158

The following user(s) said Thank You: gili

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

  • Posts: 51
  • Thank you received: 0
11 years 7 months ago #107536

ok i did it with the array function and works but ... if the product title it for example "goodmorning, vietnam" and i write on the search field "goodmorning vietnam" without the (,) comma
it cannot find the product !!!!
is there any way to make it even "smarter" ???????

about the categories .. isnt any way to hack it ???????

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

  • Posts: 2334
  • Thank you received: 403
11 years 7 months ago #107649

About the search it imply a custom code to make it "smarter", it does ask too much development so we can't make it for you.
I would recommend to keep the old option so with your search "goodmorning, vietnam" it will work.

About the categories, try with the list type.
PS: You don't need that much "????" to make us understand your question ;)

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

  • Posts: 102
  • Thank you received: 2
11 years 7 months ago #108116

Hi Nicolas, can you be a bit more detailed on how to do this. The joomla search does nothing. I am not sure what your are describing here and then applying filter. Thanks.

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

  • Posts: 83049
  • Thank you received: 13408
  • MODERATOR
11 years 7 months ago #108166

Mmm. I'm not following you.

What do you means by the "joomla search does nothing" ?

Did you publish and configure the HikaShop search plugins ? Otherwise, you won't get any result from HikaShop in the search results of the joomla search module.

The information on this thread is mainly about Hikashop filters, and not Joomla search.

The following user(s) said Thank You: miracleecho

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

  • Posts: 102
  • Thank you received: 2
11 years 7 months ago #108169

That was it. I actually figured that out right after the post. Plus i was trying to use the smart search.

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

Time to create page: 0.131 seconds
Powered by Kunena Forum