• Resolved Pat Harvey

    (@patchh)


    I am developing a new site and needed to be able to search in custom meta for woocommerce products.

    I installed the wp extend search plugin and it looks good, but for some reason the results are duplicated when using ajax to get results.

    So if I search for the title of a product, that product appears twice in the results.

    I am using the flatsome theme, and it is calling the results from admin-ajax as I type in the search term

    For example searching for

    returns the ajax

    {“suggestions”:[{“type”:”Product”,”id”:3214,”value”:”wp-extendsearch product test”,”url”:”http:\/\/sitedomain.org\/product\/test-product\/”,”img”:null,”price”:”<span class=\”woocommerce-Price-amount amount\”><span class=\”woocommerce-Price-currencySymbol\”>£<\/span>20.00<\/span>”},{“type”:”Product”,”id”:3214,”value”:”wp-extendsearch product test”,”url”:”http:\/\/sitedomain.org\/product\/test-product\/”,”img”:null,”price”:”<span class=\”woocommerce-Price-amount amount\”><span class=\”woocommerce-Price-currencySymbol\”>£<\/span>20.00<\/span>”}]}

    Can you think how to prevent the duplicates?

    thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Sumit Singh

    (@5um17)

    Hi,

    I am sorry but Flatsome is a paid theme and I can not download and test the issue with Flatsome.

    This plugin adds the distinct in search query to avoid duplicate results. Please see here

    I would suggest contacting theme support if they spot something wrong on my side then for sure I will fix the issue.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘duplicate results when using with flatsome theme’ is closed to new replies.