Skip to content

Search: Searching for products with WPML installed returns multiple instances of the same product #16188

Open

Description

The site where I encountered the issue has WooCommerce and WPML installed. There are three different versions of the site (English, Russian, and Latvian). The problem is, when Jetpack search is enabled (The old search, not the 'instant search', it's called "Replace WordPress built-in search with an improved search experience" on Calypso) - when you search for a product, it returns multiple products of the same name from all versions (languages) of the site.

However, in certain other languages, none of the products show up on search results.

Steps to reproduce the issue

I haven't reproduced this on my test sites. The steps are from the site of the user who reported it.

  1. Have WooCommerce and WPML installed with products in multiple languages (with the same name) and a toggle to switch between the languages in the menu.
  2. Search for the product using the search button.
  3. Switch between different languages to see the search result for the same search term is different.

What I expected

I expected the search terms to show the search result for either the same product regardless of which language/version is chosen.

What happened instead

In English version, the same product is listed three times:

Screen Shot 2020-06-18 at 6 07 11 PM

In Russian, none of them are displayed:

Screen Shot 2020-06-18 at 6 07 54 PM

Issue reported in #21973904-hc
Follow-up ticket in #3071272-zd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Feature] SearchFor all things related to Search[Focus] i18nInternationalization / i18n, adaptation to different languages[Type] EnhancementChanges to an existing feature — removing, adding, or changing parts of it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions