how to setup text filters?

  • Posts: 490
  • Thank you received: 2
8 years 5 months ago #243793

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

is it possible to add information for the search results using the filters?

1. at the moment it shows nothing when search expression has no match
2. can we add total number of results on top?

thanks again

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

  • Posts: 2143
  • Thank you received: 747
8 years 5 months ago #243795

Hi again & kumusta,

1. Create a language override for the key HIKASHOP_NO_RESULT. It will be shown in case of no results.

2. It's already being displayed on your site as part of the pagination (e.g. "Results 1 - 12 of 885" when searching without a search text), only your pagination is displayed at the bottom = below the product listing. Change the pagination's position, and you'll have what you want.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 490
  • Thank you received: 2
8 years 5 months ago #243849

terima kasih :)

Is there a way to customize the search as well?

is there a way to prioritize certain elements as part of the algorithm?

example:

1st priority exact match from title and description
2nd exact match from title only

something like this...

BTW: Do you speak Filipino?

thanks again

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

  • Posts: 2143
  • Thank you received: 747
8 years 5 months ago #243854

Salamat,

But no, just Euro expat in SG with Cebuana wife :)

Back to your question:
There's certainly no option for this now, otherwise you had seen it in the backend.

But I'll shut up now and leave the field on this to our friends at HikaShop. It will sure be another while before they have something like Google integrated, haha, but in the meantime they might come up with one of their tricks they're famous for... ;)


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 5 months ago #243861

Hi,

As lousyfool said, there is no option for that.
Having some kind of priority makes it a lot more complex to process. It requires pre processing the searches to not hinder performances too much, and it requires a lot of changes in the system of filters.
I honestly don't see that coming any time soon.

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

  • Posts: 490
  • Thank you received: 2
8 years 5 months ago #243936

thanks guys

1. how does the search function at the moment?

2. which product gets first priority and last?

3. where is the view that handles the search?

4. what is the code that handles the search?

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 5 months ago #243942

Hi,

1. Once you use filters, the filtering system adds bits of queries to the main MySQL which loads the products of the products listing of the menu item you're using for the results.

2. The priority of the results depends on what you configured in the "ordering column" and "ordering direction" settings of the menu item used for the result page (the id of the menu item you entered in the "menu" setting of the filter module).

3. For the display of the filters, it's the file "filter" of the view "product". The results use a normal products listing, so it's the normal view files as explained on this documentation:
www.hikashop.com/support/documentation/1...-display.html#layout

4. The code that handle the search is divided in three parts:
1. The function listing of the file components/com_hikashop/views/product/view.html.php where the system generates the MySQL query to load the products on the page
2. In that listing function, there is some code to call the filtering system to add its bits of MySQL to the query loading the products. The filtering system code is in the file administrator/components/com_hikashop/classes/filter.php
3. The product listing views as explained in point 3. for the display of the products listing of the results.

The following user(s) said Thank You: lousyfool

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

  • Posts: 490
  • Thank you received: 2
8 years 4 months ago #244040

thanks again

i have a lot of subcategories or nested subcategories.

example

footwear
> shoes
>> leather shoes
>> non leather shoes

if i have a product and place it under shoes category the search cant find it. i have to select shoes and product category for the search to find it. is this normal?

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 4 months ago #244057

Hello,

Can you check your "Including sub categories" option in your Filter Configuration ?



Second step to check, in your HikaShop filter module, in Extensions => Modules, click to edit your HikaShop Filter Module, look for Menu option, do you have like this screenshot example, if you have the menu item id in order to your filter look IN this item menu.





If this option is already setted on "Yes", there is something strange and so, the best way to progress will be to send us back end references via our Contact us form, just add an Url link to this topic.

Awaiting news from you.

Regards
Awaiting news from you

Attachments:
Last edit: 8 years 4 months ago by Philip.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum