Hello,
I understand you would like to show certain categories only if the user is logged in.
You can use a plugin like:
https://woocommerce.com/products/products-visibility-by-user-roles/
It has the ability to show or hide products or categories depending on if the user is logged in. If you have any pre-sales questions, feel free to ask them at:
https://woocommerce.com/my-account/create-a-ticket/
You might need to create an account before. Also, you can get in contact in touch with one of the customization experts listed on the WooCommerce Customizations Page; they could help achieve the job you need.
https://woocommerce.com/customizations/
Or, if you are looking for a custom code alternative solution, please refer to this page.
I hope this points you in the right direction.
We haven’t heard back from you in a while, so I’m going to mark this as resolved – hopefully, you have been able to find a solution.
Best.