In order to make certain products purchasable under certain conditions, you would need to create dependencies tailored to your needs and add them to your product groups. For more information on dependencies, see this article.
Once you have created a dependency, you can add it to a product group by navigating to your event -> Tickets and products -> Product groups, clicking on the action button for your product group, clicking Settings, selecting your dependency from the dropdown list and clicking Save.
Once you configure your product groups with dependencies, only once the dependency conditions are met will the products belonging to a product group appear in the shopping cart.
In the following example, we have two participant types and two dependencies for each of them in order to show them different products.