• Resolved benjaminjones

    (@benjaminjones)


    Hello,

    I am just wondering if it is possible to disable the functionality where pressing ‘Enter’ during a search redirects to the default WooCommerce product page. My store is highly customized using a page builder, and I’d prefer users to select products directly from the FiboSearch drop-down list to visit the specific product pages.

    Appreciate any assistance.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @benjaminjones!

    Here is a piece of code that does the trick. You can paste it into?functions.php?file in your Child theme or use the?Code Snippets?plugin.

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

    If users can’t submit the search form, they shouldn’t have the “See all products” link either.

    The following CSS code hides this button.

    .dgwt-wcas-suggestion-more {
    display: none;
    }

    The following CSS code hides this button.

    Regards,
    Kris

    Thread Starter benjaminjones

    (@benjaminjones)

    Amazing, thanks so much for that! Worked a treat ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable ‘Enter’ Redirect to Default WooCommerce Page’ is closed to new replies.