• Resolved Kybernetik Services

    (@kybernetikservices)


    Hello @c0nst.
    Thank you very much for this helpfull plugin.
    I want to use it just to get price information on a dedicated page.
    I’m wondering if you added an option to disable the link to the product page.
    That means, when I enter a search string, the drop down with the suggestions shouldn’t have a link to the product page. Is this possible?
    I couldn’t find a filter or action for this.
    Than you in advance for taking time to answer!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @kybernetikservices,

    You can disable links in suggestions using the following filter. This solution works with FiboSearch v1.9.1 and higher. You can paste it into the functions.php file in your child theme or use the Code Snippets plugin.

    add_filter( 'dgwt/wcas/scripts/disable_hits', '__return_true' );

    • This reply was modified 3 years, 3 months ago by Kris.
    Thread Starter Kybernetik Services

    (@kybernetikservices)

    Thank you very much @c0nst, for your reply.
    Unfortunately this filter is not working.
    Here a screen shot of the filter after adding the filter and hover over the line in the search results: https://ibb.co/RpFmz8L
    Do you have an idea how to solve this?

    Sorry to hear that @kybernetikservices

    Please try this custom CSS solution:

    .dgwt-wcas-has-headings .dgwt-wcas-suggestion {
      pointer-events: none;
    }
    
    .dgwt-wcas-suggestion-selected {
      background-color: inherit;
    }

    Best Regards
    Krzysztof ?lósarz

    Thread Starter Kybernetik Services

    (@kybernetikservices)

    Thank you @c0nst for your reply and workarround.
    This is working.
    Maybe you find time in the future to make the filter dgwt/wcas/scripts/disable_hits work.
    For now, thank you once more for this plugin and your time helping me with my request. I do really appreciate this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable link to product page’ is closed to new replies.