Site logo

Archived topic

Problem displaying product categories

7 replies · Started by Jason on July 21, 2021

Viewing posts 1–8 of 8

Hi there,

I'm finishing a WooCommerce site, and using GP for the shop's product archive pages. The pages are set to display categories and sub-categories only.

My problem is that I've got one category called "spare parts" that has sub categories in it, and the products are in the sub categories and another called "replacement pillows" that doesn't, so all the products are at the category level itself.

Unfortunately, I can't get the spare parts category to display. It seems that because all the products are in the sub-categories and none are in the spare parts category itself, the page thinks the spare parts category is empty.

Can you tell me how I can get it to display? GP, and the GP plugin are up to date. Site uses Elementor, but on this page, the only Elementor bits are header and footer, the main part of the page is GP.

Thank you, Jason

Hi there,

thats the expected behaviour of a woocommerce category archive ( its not the Theme that dictates that ).
Woo provides options in Customizer > Woocommerce for setting the Catalogs behaviour: Categories, Products or Categories + Products.
But for a child term product to be displayed in a parent category archive it must have both parent and child category terms. Or it won't display them in the parent archive.

Hi David

Thanks for your reply. And thanks for letting me know it's a Woo thing. So even though there are products with inventory in the sub categories, the category that those sub categories are in won't display?

cheers

Jason

Thats correct - products are only displayed in a specific category if they belong directly to that category.

Well that's a bugger. I'll have to make all the sub-categories top level categories.

Thanks for your help David

Cheers

Jason

Wait up - might have been suffering from some heatstroke or something earlier, but that didn't sound right.
So i ran a quick test with Parent (0 products) > Child ( X products ) - and as long as the Customizer > Woocommerce > Catalog is set to Display Products then i get to see products in the parent....

Yeah that heat dome didn't sound pleasant. I hope that don't become a regular kind of thing for you guys.

Glad to hear thats working !

This archived topic is closed to new replies.