Hide products price from product details page until user logins in Shopify

Have you ever imagined how much difficult or easy is to implement a functionality on your Shopify store in which a visitor will not be able to see product details, price or add to cart feature until he login to his store account or sign ups and then login?