• Resolved Jason Wong

    (@eljkmw)


    I’m using your marvelous plugin together with SearchWP Live Ajax Search, which works well together.

    However, I’m encountering a couple of issues, and I require some assistance.

    Firstly, when the search is done on the Home page, the search parameter will append and redirect automatically to the search result page. Unfortunately, if the search is done on other pages/posts, the search parameter will append on that current URL, which doesn’t redirect automatically to the search result page. Is there any way to “force direct” to the search result page regardless of which page/post the search is done?

    Secondly, the search result page will list what Relevanssi finds. However, the SearchWP Live Ajax Search input element doesn’t seem to list out any WooCommerce product, although the products are listed in the search result page. I find this one issue most puzzling.

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jason Wong

    (@eljkmw)

    I managed to resolve the first issue, by amending the FORM element like shown

    <form method="get" action="<?php echo esc_url(home_url('/')) ?>">

    Now, I’m trying to figure out how to resolve the second issue. Any ideas, anyone?

    Thread Starter Jason Wong

    (@eljkmw)

    After searching around on the Internet, I found the solution to the second issue.
    Apparently, the searchwp_live_search_query_args excluded searching for WooCommerce products. So, I added the snippet by pixedelic from https://github.com/jchristopher/searchwp-live-ajax-search/issues/35, and removed the last 2 lines of code that hides certain product IDs.

    I’m relieved that it works properly now. (^_^)v

    (pixedelic) Glad of having been helpful. ??

    • This reply was modified 7 years, 3 months ago by manuelmasia.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Appends on current URL, fails redirect to search result page’ is closed to new replies.