Ajax Search not working with multi language Polylang

This topic has 15 replies, 3 voices, and was last updated 3 years, 2 months ago ago by Rose Tyler

  • Avatar: Fiz
    Fiz
    Participant
    June 28, 2021 at 06:38

    Hi, i’m using polylang to have 3 language store. But the header search cannot return any results when i typed product name in other languages. Only product name in main english language will return results. Chinese language return no result.

    14 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 28, 2021 at 06:58

    Hello,

    Provide temporary wp-admin and FTP access, so we can take a closer look.

    Regards

    Avatar: Fiz
    Fiz
    Participant
    June 28, 2021 at 10:13

    ok. let me upload it on a temp hosting. will update the login soon.

    Avatar: Fiz
    Fiz
    Participant
    June 28, 2021 at 10:38

    Please use login info as provided here…thanks

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 28, 2021 at 13:47

    We can’t log in to your Dashboard – https://gyazo.com/6c1fd3f05732ddd7f3f3c768eff236f1 Please check.
    If you do not know how to create FTP contact with your hosting provider, they will help you.

    Regards

    Avatar: Fiz
    Fiz
    Participant
    June 28, 2021 at 16:15

    Sorry. please use these info.

    Please contact administrator
    for this information.
    Avatar: Fiz
    Fiz
    Participant
    June 28, 2021 at 17:54

    Also when i typed in search (without ajax) “Blue Stripped Chair” ( i do have this product) and click search button, no product is showing. If Ajax is on, the product is listed in the ajax dropdown result.

    If i search for “chair” only, 2 product with word “chair” displayed on dropdown. But when clicked the search button, showing no results.

    regardless if Ajax On or Off, clicking the search icon button should bring to search result page and show all the product that has the word being search in their title. Right?

    Even if i typed full product name in search box, then click the button, no result.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 29, 2021 at 20:36

    Hello,

    Thank you. I have passed your issue to our developers. I’ll inform you once they fix the problem.

    Regards

    Avatar: Fiz
    Fiz
    Participant
    July 3, 2021 at 03:55

    Hi, any updates on this? it quite urgent actually.
    You can replicate by using fresh WP+Xstore+Polylang 2 languages, then test the search box for both language.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 3, 2021 at 08:00

    Hello,

    Sorry for the delay in answering. We need a bit more time. Our technicians team doesn’t work during the weekend, but I’ve added priority for your task on our desk. Please be patient.

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 7, 2021 at 09:34

    Hello,

    Clear cache and check now.

    Regards

    Avatar: Fiz
    Fiz
    Participant
    July 15, 2021 at 07:28

    Hi, seems working. May I know what has changed? if there were code changes, which files to edit & what;s the correct setting? I’m afraid later when i update the theme or plugins, it broke again…thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 15, 2021 at 11:12

    Hello,

    We made some fixed to improve compatibility with the Polylang and search option.
    Fixes are included in the theme update.

    Regards

    Avatar: Fiz
    Fiz
    Participant
    August 30, 2021 at 04:17

    Hi, ajax search is now working with latest update. It will add lang query when search icon is clicked but did not maintain/redirect to the language folder url.

    english url (default) = https://domain.com/
    chinese url = https://domain.com/cn/

    But for the ajax search, when input and clicked search icon, the url will go to the correct product language but all other interface will use default lang which is EN.
    search result url like below:
    https://domain.com/?s=夏&post_type=product&et_search=true&lang=cn

    It should go to this url to retain everything in CN when requested from CN page.

    https://domain.com/cn/?s=夏&post_type=product&et_search=true&lang=cn

    how can I achieve this on htaccess?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 31, 2021 at 15:51

    Hello,

    Provide URLs, temporary wp-admin, and FTP access.

    Regards

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

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

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