From c8326c079051b431ecf1c993f0dcbdf23868a251 Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Fri, 18 Jul 2025 15:49:47 -0700 Subject: [PATCH] changes --- actions/ShopPageShowCatsInsteadAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/ShopPageShowCatsInsteadAction.php b/actions/ShopPageShowCatsInsteadAction.php index ba83f75..a82c065 100644 --- a/actions/ShopPageShowCatsInsteadAction.php +++ b/actions/ShopPageShowCatsInsteadAction.php @@ -34,7 +34,7 @@ class ShopPageShowCatsInsteadAction extends RadAction remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5); remove_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10); - $productCats = site()->getTerm('product_cat'); + $productCats = site()->getTerm('product_cat', ['url', 'thumbnail', 'title', 'count']); $withoutUncategorized = array_filter($productCats, fn ($c) => $c->slug != "uncategorized"); $topLevelCats = array_filter($withoutUncategorized, fn ($c) => $c->parent == 0);