• Resolved rachelkhoong

    (@rachelkhoong)


    My search page is not displaying things properly anymore. It’s not showing the searched-for products, of which I know there are 3. It also doesn’t show the “we couldn’t find anything” div so I know that the search results exist, they’re just not being shown. I have since reverted to the master “archive-product.php” page, and still nothing.
    Searching for products I know exist: https://i.imgur.com/hAXvls1.jpg
    Searching for products I know don’t exist: https://i.imgur.com/iZ7HPEs.jpg

    I’m also extremely sure that the 3 results exist, because they show up in the AJAX search (Advanced Woo Search plugin).
    AJAX Search result for products I know exist: https://i.imgur.com/3yDhJ2j.jpg

    I’m pretty stumped ?? I’ve replaced templates with Woocommerce masters, checked out git commits, and older versions (where the search had worked) are not showing results now.

    Help ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Ross V. a11n

    (@rossviviano)

    Automattic Happiness Engineer

    Hi there,

    This certainly sounds like a conflict to me. Here’s how to check:

    First, you’ll want to change the theme on your site to Storefront, then test. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you. If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one to see where the issue is coming from. If you don’t want to test on your live site, then create a staging site using a plugin called WP Staging.

    Thread Starter rachelkhoong

    (@rachelkhoong)

    Hiya,

    Thanks for that. I’ve tried it with Storefront and the search page loads.

    Unfortunately for me, I’m the theme developer ?? I was hoping to see if it’s a common thing that happens, and that I had accidentally deleted some file.

    The search page is using “search.php”, and if that doesn’t exist it’s using “index.php”. Both pages have <?php woocommerce_content(); ?>, which shows the header text but an empty “ul class=”products columns-4”> in this unfortunate case.

    Would you maybe be able to suggest something? I know it’s something but I just can’t see what ??

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @rachelkhoong

    Do you get the same result using the Product Search widget? Also, take a look at the Storefront search.php file to see if it helps in comparing it with your active theme:

    https://github.com/woocommerce/storefront/blob/master/search.php

    Hope that helps,

    Thread Starter rachelkhoong

    (@rachelkhoong)

    Hiya,

    Thanks for your reply and help. So after comparing theme files and basically copying them for myself I randomly came across the problem.

    I had a plugin that disabled the blog by redirecting, and deactivating that brought my results back. Weird because I really thought the problem was my theme because the results loaded with Storefront.

    Interestingly, without the conflict, my results page template file was is archive-product. With the conflict the results page was search/index.

    I vow to learn and study WordPress inside and out before embarking on my next big project…

    Thank you so much to both of you ??
    Rachel

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @rachelkhoong

    Fantastic job troubleshooting! We’re here if you have any questions or get stuck along the way.

    Best,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search Results exist, but don’t show’ is closed to new replies.