• Resolved teampbat

    (@teampbat)


    Hi,
    I am using your plugin on a site with Elementor Pro and the search bar works really well. As soon as I hit enter an go to the search results page, I cannot see any search results. The page only shows the cateogories of the shop. I am guessing there is an issue with Elementor ARchive vor search results as your plugin modifies the URL with something like “…&dgwt-wcas-search-submit=&post_type=product&dgwt_wcas=1”
    Any experience with Elementor?

    Our site is currently under Maintenance mode. I can give you access if you need.
    Thank you.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • 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://www.ads-software.com/support/topic/default-search-page-2/

    Thanks again!

    Thread Starter teampbat

    (@teampbat)

    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!

    Plugin Author Damian Góra

    (@damian-gora)

    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

    Thread Starter teampbat

    (@teampbat)

    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

    Thread Starter teampbat

    (@teampbat)

    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).

    Thread Starter teampbat

    (@teampbat)

    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.

    jnmsol

    (@jnmsol)

    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 3 years, 7 months ago by hadi2018.
Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Search results page with Elementor’ is closed to new replies.