ProSearch
Forum Replies Created
-
Hi Sayna,
Thank you for your kind words and for using our plugin. We really appreciate your feedback and suggestion.
Yes, the icon-only search button with a popup / drop-in search form is already under development and planned for a future update. We agree that this feature can greatly improve the user experience, especially on mobile devices.
Your suggestion is valuable to us, and we’re actively working to make the search experience more modern and convenient. Please stay tuned for upcoming releases.
Thanks again for your support and for sharing your idea with us.
Hello,
Thank you for sharing your website.
We checked your site on the frontend, but it seems that the ProSearch plugin is not currently active or visible. Because of this, we’re unable to properly test or verify how it’s interacting with the XSTORE theme.
Could you please confirm:
- Whether the plugin is installed and activated
- If there are any settings enabled for automatic replacement
- If possible, share a screenshot of the plugin settings
- If SHORTCODE working fine?
Once we have this information, we’ll be able to assist you more accurately.
Thank you for your cooperation and for using our plugin!
Hi,
Our plugin currently works with its own built-in search field and does not support integrating its search functionality into a custom or existing search bar.However, the plugin’s search bar is quite similar in structure to your current one. With some minor CSS adjustments, it can be styled to closely match your site’s existing design without significantly affecting the overall layout.
Thank you for reaching out and for using our plugin—we truly appreciate your support! If you need any help with the styling or have further questions, feel free to let us know. We’re always happy to assist.
Hi Paolo,
Thank you very much for your kind words — I truly appreciate it.
To completely exclude certain product categories from the Ajax search results, you can exclude specific product IDs that belong to those categories by using the following filter:
add_filter('mpsfw_exclude_products','mpsfw_exclude_products'); function mpsfw_exclude_products($products){ $products[] = 64; // Add the product ID you want to exclude return $products; }Simply replace 64 with the ID(s) of the products you would like to exclude from the search results.
Please feel free to reach out if you need any further assistance — I’ll be happy to help.
Thank you again for your support.
Hi Paolo,
Thank you for reaching out and for using ProSearch for WooCommerce — we truly appreciate it.
At the moment, there isn’t a built-in option to exclude subcategories from the Ajax search results. However, you can achieve this behavior using a custom filter.
Please try one of the following code snippets, depending on your preferred result:
1. Hide all subcategories (show only parent categories):
add_filter('mpsfw_search_results_categories', 'mpsfw_search_results_categories'); function mpsfw_search_results_categories($result_array){ if (!empty($result_array['product_cat'])) { $parent_categories = array_filter($result_array['product_cat'], function ($cat) { return isset($cat['parent']) && $cat['parent'] == 0; }); $result_array['product_cat'] = array_values($parent_categories); } return $result_array; }2. Hide subcategories but display their top-level parent category instead:
add_filter('mpsfw_search_results_categories', 'mpsfw_search_results_categories'); function mpsfw_search_results_categories($result_array){ if (!empty($result_array['product_cat'])) { $unique_parents = []; foreach ($result_array['product_cat'] as $cat) { $parent_id = $cat['id']; // Find top-level parent while ($cat['parent'] != 0) { $parent_term = get_term($cat['parent'], 'product_cat'); if (!$parent_term || is_wp_error($parent_term)) { break; } $parent_id = $parent_term->term_id; $cat['parent'] = $parent_term->parent; } // Get full parent term data $top_parent = get_term($parent_id, 'product_cat'); if ($top_parent && !is_wp_error($top_parent)) { // Add only unique parents if (!isset($unique_parents[$top_parent->term_id])) { $unique_parents[$top_parent->term_id] = [ 'name' => $top_parent->name, 'id' => $top_parent->term_id, 'slug' => $top_parent->slug, 'count' => $top_parent->count, 'link' => get_term_link($top_parent), 'excerpt'=> $top_parent->description, 'parent' => $top_parent->parent, ]; } } } $result_array['product_cat'] = array_values($unique_parents); } return $result_array; }We hope this helps!
Please feel free to let us know if you need any further assistance.Best regards,
ProSearch Support TeamHello Marcus,
We are pleased to inform you that Prosearch version 1.0.5 has been released. This update includes the new Search Bar Replacement functionality you inquired about.
Kindly update to the latest version and confirm whether the feature and search relevance improvements are functioning correctly.
Thank you for your valuable feedback and support.