This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

WP/ Search not populating

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • #56295
    opusuno_qeTzopusuno_qeTz
    Participant

    Hi ernest,

    I hope this is easy… In the past when the default WP search wasn’t working I would assign it to the one setup using your plugin and it just works. But on this site: https://capriolas.com it’s not populating? Using GeneratePress .. Is there something I’m missing?

    #56315
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    I suspect the search override may not be enabled, please make sure it’s turned on, that should resolve the issue.

    #56338
    opusuno_qeTzopusuno_qeTz
    Participant

    Thank you Ernest. Progress… That gives me a result.

    But how do I now get the products/images to display?

    It shows only the text of the category or the tag.

    Sorry to be a pest.. I must be missing this in the settings.

    #56348
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I assume you are using WooCommerce?

    In that case make sure the redirection is set to the WooCommerce results page. It should be set to that by default, but rather check it, it would explain the problem.

    #56353
    opusuno_qeTzopusuno_qeTz
    Participant

    Yeah. That’s how it is. Same result.. weird. In the GP customizer it shows use image in archive too.

    https://capriolas.com

    #56363
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Can you please make sure that taxonomy terms are not selected to be as results here?

    From what I can see there are product categories as results, which you probably don’t need there.

    #56383
    opusuno_qeTzopusuno_qeTz
    Participant

    Same settings. Weird. At least it’s populating with something..

    #56387
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Do you see a different results page layout when the Ajax Search Pro plugin is disabled?

    #56407
    opusuno_qeTzopusuno_qeTz
    Participant

    Yes. It displays the product images and descriptions when AjaxSearch is disabled. See screenshot

    #56417
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Okay!

    When I do a search via the plugin search box, I’m getting the correct results page though. I assume the native search bar is not redirecting to the woocommerce results page, but the default one.

    #56452
    opusuno_qeTzopusuno_qeTz
    Participant

    That might be the case.. I don’t know why since it selected to use WC

    #56470
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Okay, that’s probably the case then.

    Looks like that native search is within a modal of some sort. You can try enabling the automatic override, if it uses a hook, then it should be possible to replace with the Ajax Search Pro search automatically.

    If that does nothing, then look for the theme customizer. Modern themes usually have an editor where you can change the search box – or at least adjust the location to the WooCommerce results page.

    #56475
    opusuno_qeTzopusuno_qeTz
    Participant

    I don’t think it’s that.. GeneratePress is either on or off

    It’s a little frustrating. Mainly since my client is whining about it..

    It works perfectly embedded in the home page. Just not in the primary navigation. Modal.

    Is there someway to make the embedded on still work and just use the Navigation default?

    I notice when this is returned No Results Found == https://capriolas.com/?s=sweater

    But when I simply reload the same page it works?

    #56498
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Well, it is outside of Ajax Search Pro, but I will try to help. The only issue with the embedded search is that it’s not having the “post_type=product” argument, which is the trigger for WooCommerce to capture and display it’s product results page.

    Maybe you can set up a .htaccess redirection, or a programmatical redirection so the post type argument is added.

    Even simpler might be to add an extra hidden input to the modal search with the post type argument, so it’s autoamtically captured by the woocommerce results page. That might be the simplest possible solution in my opinion.

    #56515
    opusuno_qeTzopusuno_qeTz
    Participant

    Are you suggesting a function in the child theme? Thanks for the help.

Viewing 15 posts - 1 through 15 (of 29 total)
  • You must be logged in to reply to this topic.