diff --git a/app/categories/page.tsx b/app/categories/page.tsx index 14e2e79..59c8ee4 100644 --- a/app/categories/page.tsx +++ b/app/categories/page.tsx @@ -69,44 +69,84 @@ export default function AllCategoriesPage() { ) : ( -
+ {subs.length > 0 ? `${subs.length} Sub-categories • ` : ''} + {parent.product_count !== undefined ? `${parent.product_count} Total Products` : 'Catalog Category'} +
+No sub-categories defined. Direct catalog products are under this category.
++ Select a sub-category to view products ({activeParentCat.product_count || 0} total items) +
++ {sub.name} +
++ {sub.product_count !== undefined ? `${sub.product_count} Products` : 'Browse'} +
+