Search Results page is not loading Archive Layout template

I don’t know if this is an issue with a plug-in conflict, but the Search Results page only shows pictures of most recent products uploaded to our site and nothing else. Any search terms are ignored and nothing else appears.

At first, I thought this was because there’s no template assigned to it so I made some changes, made sure the Conditions were set to Search Results is being viewed, but the template is not used. For a brief moment, I thought I needed to make a page for Search Results on the Wordpress side but that doesn’t make sense…

Honestly, there’s been random stuff broken with the recent Woocommerce updates and I wonder if this is just an incompatibility issue with Cornerstone and Blocks, which Woocommerce favors.

UPDATE: Just a follow up but I did switch to a theme that supports Blocks and search does show results. I guess this is a support question for Woocommerce instead?

Hi @dobacco,

Thanks for reaching out.
It will be very difficult to understand without seeing the actual error. If you think this is a problem with WooCommerce, I would suggest you deactivate the plugin temporarily and check if the Search is working correctly. If yes, then you can report it to the plugin author.
If it is still not working, there might be some other reasons behind your issue. I would like to suggest troubleshooting the following common issue to help us recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue **if you have activated it.
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN

If you discover that an issue is coming from a custom code or 3rd third-party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins, unless you are subscribed to One. If not subscribed, kindly consult with a developer or contact the plugin author.
Please note that we do not provide support for custom codes and 3rd party plugins, unless you are subscribed to One service.
If none of the above helps, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Thank you for your response. I’ve added login credentials to a secure note above.

I did try disabling all plugins and changed themes (we are using a Child theme right now) but the issue does not appear to resolve unless we switch to a Blocks theme.

Hello @dobacco,

I have checked the 3 of your custom Archive layouts. They all have Looper Providers. Be advised that custom archive layouts will use the default WordPress loopers. Only the Looper Consumer is needed. You DO NOT need a looper provider. If you do have Looper Provider in your custom archive layout, you will have incorrect return items and the Pagination will not worl properly.

Now, if you want to EXCLUDE a particular item/s or specific category of the items, you will have to do it with a custom PHP code. Please check out these old threads:

Hope this makes sence.

@ruenel Thanks for your response. I will try to see what I can do given this information.

Also I just realize part of the problem. We have two layouts that were both set to be used if Search Results is being viewed. My apologies for not noticing…

UPDATE: Yeah that was dumb of me. The layouts interfered which caused the weird results. After disabling both layouts, search is working again. Not well per se but it works as intended. I will continue to see what I can figure out from the forums to build out the search page properly.

Thanks for your help!

Hi @dobacco,

Glad to know that you are able to find the reason behind your problem. Please let us know if you need any further help with this.

Thanks

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)