Search form ony returns posts - by Mackenzy

This topic has 6 replies, 2 voices, and was last updated 8 years, 1 month ago ago by Eva Kemp

  • Avatar: Mackenzy
    Mackenzy
    Participant
    February 15, 2016 at 12:54

    The search function is not working properly, only returning posts, not products.

    I removed the code <input type=”hidden” name=”post_type” value=”product” /> in line 12 in the woosearchform.php but that did not help.

    Any ideas how to remove this problem?

    Thanks
    Mackeny

    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    February 15, 2016 at 13:40

    Hello,

    Please create a page Search Results and select template “Search Results” which we created specially for search form and in Theme Options > Ajax Search enable the options you need.

    Regards,
    Eva Kemp.

    Avatar: Mackenzy
    Mackenzy
    Participant
    February 17, 2016 at 10:01

    Thanks Eva, this works brilliantly.

    The only 2 issues I have left in this context are:

    1. In the results page the header says “Product results”. Where can I translate this? In WPML it cannot be found.

    2. In the search field when entering a search word it says “view products”. I have translated this in WPML but it does not change to Dutch.

    Thanks,
    Mackenzy

    Avatar: Eva
    Eva Kemp
    Support staff
    February 17, 2016 at 13:00

    Hello,

    Please provide us with wp-admin panel credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: Mackenzy
    Mackenzy
    Participant
    February 17, 2016 at 15:29

    Please find the credentials in the Private Section below.

    Mackenzy

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    February 17, 2016 at 17:39

    Hello,

    I’ve rescanned the strings and as I see there is no translation for “Products Results”:
    http://storage8.static.itmages.com/i/16/0217/h_1455727150_8437149_c13315ec7e.png
    Please check strings in WPML > String Translation.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.