Hi,
I’m also facing the same issue. Did you find any solution to fix this?
One thing I found is that, after hitting enter, it goes to the url like this
=&post_type=product&dgwt_wcas=1.
In this URL if I change “product” to “products” manually, the search page works and display the search results.
But we need to find a way to change this url in the plugin to fix this.
Let me know if you find any fix for this.
Hey again,
I searched the plugin files to fix this and found the file path.
\wp-content\plugins\ajax-search-for-woocommerce\partials\search-form.php
In this file you can go to the line #35 (it may change for you), you can find a line like this:
<input type=”hidden” name=”post_type” value=”product” />
So here, you can change the value “product” to “products” to resolve it.
It works for me. Let me know if it works for you or not.
Thank you! This helped with my issue I was having too and I wasn’t using Elementor.
https://wordpress.org/support/topic/default-search-page-2/
Thanks again!
Hi, thanks. Seems to work.
However, is there an update-friendly way to do this? Like with a child-theme or so?
Hi Arun,
Thanks for your fix, was also having the same issue on Elementor!
Sorted instantly,
Thanks!
He everyone,
First of all, changing product
to products
doesn’t solve the problem. Remember, that there are two search result pages with different templates and routing:
1. WordPress search results page with query string ?s=search-phrase
2. WooCommerce search results page with query string ?s=search-phrase&post_type=product
If you change product
to products
, your site doesn’t recognize post type products
and try to loads standard WordPress search results page instead of WooCommerce. It’s bad.
Probably you build the WooCommerce search results page in the wrong way in Elementor Pro. To create WooCommerce search results page in Elementor Pro, go to Templates -> Theme Builder and create new Product Archive. After finishing you should set conditions. Select Search results from the dropdown.
I will add this to FAQ soon because a lot of users build WordPress search results page instead WooCommerce search results page.
Best
Damian Góra
Thank you for the information.
If I change back to the standard code (and leave “product” as “product”) my search results are not shown. I only get to see the main categories of my shop.
So there seems to be some problem with fetching the search results in wordpress…
I am currently in touch with elementor to see if they can do someting.
HI.
Also I am in trouble with result page.
I love Ricerca AJAX per WooCommerce, but i’d like to integrate better with my site made by Elementor 😉
Tnk
Davide from Italy
I make correctly the template as mentioned above “To create WooCommerce search results page in Elementor Pro, go to Templates -> Theme Builder and create new Product Archive. After finishing you should set conditions. Select Search results from the dropdown.”
but nothing change.
Tnk
Ciao
Davide
I am working with Elementor Pro support and found out that Elementor Pro is causing the messed up search results. Waiting to see/read what their solution is for this issue.
Will keep you informed.
OK, so have we decided that we need to take this up with Elementor Pro support then?
Having just updated to the latest plugin version its obviously written out the fix applied and I’m back to having no search results once again.
I don’t think I really have a choice but to us the fix in the post until Elementor acknowledge the issue (which I’m not sure they will).
Elementar Pro support says this plugin is not compatible with Elementor.
I have therefore deactivated the Ajax search for my site and am using WordPress default search with Elementor search results page. And I am using a plugin “WP Extended Search” to limit the search results to products only.
Unfortunately no live results and no price info etc. for now but at least a working solution.
Elementar cannot recommend any live search plugin at this point either that works with Elementor Pro.
Hi @damian-gora ,
Is possible to add this to an elementor pro header?
Thanks is advance.
If anyone is still facing this problem using Elementor, I found a plugin called Ivory Search that worked well for me.
hi . I have same problem. I use the7 theme and Elementor pro page builder.
so I Test so many way but my search result show nothing yet 🙂
when I disable elementor pro plugin , then my search result work correctly
-
This reply was modified 4 years, 1 month ago by
hadi2018.