Product Category Page Showing "No products were found matching your selection."

Posted in: Newspaper
Post count: 17

Hi, I just upgraded from NP 7 to NP 8 and now I don’t see the woocommerce product category page coming up anymore. I get this message:

No products were found matching your selection.

However if I switch back to 2017 WP theme, now I can see the product category listing correctly. So I think something in NP theme prohibits the display.

Any idea as what could be causing this?

Thanks.

Post count: 22421

Hello,
The product categories seem to display properly on our end. Please provide more details to exactly what is not working on your product categories.
If you are referring to the product category widget, please use this topic:
https://forum.tagdiv.com/topic/woocommerce-hierarchy-not-showing-in-product-categories-widget/
Thanks.

Post count: 17

Hi Bogdan,

The product category page looks like this: site.com/product-category/books

I get that message – No products were found matching your selection.

If it is plugin incompatibility, then I assume that it wouldn’t work with the WP 2017 default theme as well but it works with that.

Could you provide me guidance as what module in NP8 that controls the display of product category page?

Thanks.

Post count: 22421

Hi
Maybe you have another conflicting plugin that prevents the product category from providing the results. Here is an example from my end:
https://www.screencast.com/t/k8vhmj42b
Please disable all plugins except the page builder and woocommerce, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Post count: 17

Thank you very Bogdan. It was with the child-theme – the moment I switch over the main NP 8 theme, it started to work. I will debug as why the child-theme is causing this.

Thanks again.

Post count: 17

Any suggestion as what could be it in child theme? Note that I made the child theme when I was in NP6 level. Do I need to recreate it to match with NP8?

I had 2 modified files in woocommerce/single-product.php & archive-product.php.

Anything that I have to differently in NP8 now?

Thanks.

Post count: 17

At last I figured out. I had a function (via init hook) that was excluding the custom post type (product) from search – it mistakenly took out the product category page listing as well. So I rearranged the function to exclude custom post type (product) only from search. Now it is all better.

We can close this thread.

Thanks.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.