Duplicate search product results in search bar

This topic has 5 replies, 3 voices, and was last updated 5 hours, 23 minutes ago ago by Tony Rodriguez

  • Avatar: lukabp
    lukabp
    Participant
    May 26, 2026 at 21:47

    Hello,
    When I search for a product using its code/SKU (e.g., 40959), the search results show duplicate items. The first two results are correct (with images), but the next two are duplicates with missing images (showing the default placeholder). The result counter says “Found 2 products”, but 4 items are displayed in the layout.
    It seems like the search function is querying the database twice (once for the Title and once for the SKU) and duplicating the output instead of merging it.
    Could you please check why this is happening and how to fix it so that SKU search works without duplicating the products?
    Attached are the screenshots of the search results and my current Theme Options settings.
    Thank you!

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
    4 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 27, 2026 at 09:20

    Hello @lukabp,

    Could you please check it now? The issue occurred because the search was configured to include the product variation post type, which caused a conflict due to duplicate entries. We have excluded the “product variation” post type from the search results, and the results are now displayed correctly in both the AJAX search and the search results page.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: lukabp
    lukabp
    Participant
    May 27, 2026 at 12:34

    Now is okay.
    Thank you.

    Best regards,
    Luka

    Avatar: lukabp
    lukabp
    Participant
    May 27, 2026 at 12:34

    Thanks for the support! My topic “Duplicate search product results in search bar” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    May 27, 2026 at 12:34

    Dear lukabp,

    We really appreciate your time and engagement within the WordPress & WooCommerce community

    Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

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

The issue related to '‘Duplicate search product results in search bar’' has been successfully resolved, and the topic is now closed for further responses

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