duplicate results when using with flatsome theme
-
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
The topic ‘duplicate results when using with flatsome theme’ is closed to new replies.