This app does just what you need https://apps.shopify.com/login-to-see-price-b2b
If hides the prices for not logged customers and replaces them with a customizable message box.
Hi!! I tried using your code but it doesn't hide, it just shows price with a "Our price Professional Only' message. DO you have a code to actually hide unless customer is logged in?