Home Forums WoodMart support forum How to improve search

How to improve search

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #75099

    amaury_santillan
    Participant

    Hi guys.

    Im looking to improve the search results since Im usig attributes to define countires and cities.

    So I would need that the search looks for atributes besides product titles.

    Could you please help me?

    #75111

    Hello,

    Our theme does not influence the search algorithm and results. You will need to customize Woocommerce or find a plugin.

    Best Regards

    #75120

    newsprince
    Participant

    amaury_santillan

    Follow my guide from the link below.

    You can integrate relevansi plugin with ajax search from woodmart.

    Relevansi can index attributes, categories everything you want.

    So if your store has for example a product Jeans and has attribute blue, you can search blue jeans and Search result will show up of that product

    https://xtemos.com/forums/topic/relevansi-plugin-ajax-search-for-everyone/

    #75399

    amaury_santillan
    Participant

    Hi newsprince. Thank you for your advice.

    Have you found a way to integrate the results with the theme ajax search. I mean. It do works when i hit enter. But when the orudtc where supposed to be listed on the search nothing is displaying.

    Xtemos Staff. I can understand that you cant compromise the theme functionality, but how many users have asked for a little help and you just dont give a peanut.

    #75410

    Artem Temos
    Keymaster

    Hello,

    We will consider implementing this plugin support in our future updates.

    Kind Regards

    #75425

    newsprince
    Participant

    amaury_santillan yes you can integrate the search results with ajax by adding a line of code in the following file

    Go to:

    /wp-content/themes/woodmart/inc/classes/search.php

    On line 71

    after

    $results = new WP_Query( apply_filters( ‘woodmart_ajax_get_results’, $query_args ) );

    put that line of code

    relevanssi_do_query( $results );

    Now the AJAX search form brings the results from relevansi plugin.

    #75516

    amaury_santillan
    Participant

    Hi newsprince.

    I did red your tutorial.

    I placed the search.php file in this route (since im using child theme) wp-content/themes/woodmart-child/inc/classes/search.php. Ive tried with capital S on Search too.

    And this is how my code looks like:

    ——Line 71——
    $results = new WP_Query( apply_filters( ‘woodmart_ajax_get_results’, $query_args ) ); relevanssi_do_query( $results );

    relevanssi_do_query( $results );

    $suggestions = array();

    ——Line 76——

    It would be displaying search on madrid, alemania, etc since Ive already indexed on relevanssi and they do appear when I hit enter

    But it just dont works on ajax search.

    Do you know what im doing wrong?

    Xtemos guys. Ive paid already three of your licences… Every client or woocommerce user would be looking for this implementation.

    #75556

    newsprince
    Participant

    Sorry but i didn’t make it work with child theme. I edit the woodmart theme and in every update i paste the code again. Maybe xtemos team know where to put it exactly the search.php in child theme to work properly.

    Nonetheless try to put that code on woodmart theme not child theme and you ll see it will work.

    #75581

    newsprince
    Participant

    It’s not working on child theme because woodmart theme defines to include search.php file from main woodmart theme folder

    define( ‘WOODMART_CLASSES’, WOODMART_THEMEROOT . ‘/inc/classes’ );

    So you can only edit the search.php file inside woodmart theme not child.

    Except xtemos have another solution.

    #75851

    amaury_santillan
    Participant

    Thank you very much newsprince.

    I really appreciate your help, it has been really usefull.

    XTEMOS GUYS. Is there a way to show the summary on hover?

    #75862

    Artem Temos
    Keymaster

    Hello,

    What summery and hover do you mean? If it is not related to search, please, create a separate topic and post your question there including some screenshots.

    Regards

    #75867

    amaury_santillan
    Participant

    Of course its related to search.

    Once you start typing product image is displaying with product name and price.

    I would like to diusplay the product summary as it does on other parts of the site.

    Attachments:
    You must be logged in to view attached files.
    #75872

    Artem Temos
    Keymaster

    Search AJAX results don’t have so much information as on other parts on the website. They contain image, price and title only. There is no option to display summary there.

Viewing 13 posts - 1 through 13 (of 13 total)