The following snippet can be used to show content only to users who are currently logged in.
taxonomy-product-categories.php template
Or with an else statement:
Logged in
Not logged in
taxonomy-product-categories.php template