How to conceal product prices in website source code for B2B sites?

I have taken over managing a website that sells to wholesalers. It was set up with the prices on the page being hidden until a wholesale customer logs in. But you can still see the price in the source code. How can I hide this in the source code? The price appears in many places in the source code. This is the first instance:

Hi @DermotF ,

I checked and this code is displayed in the theme meta tags. Please go to layout > theme.liquid file, you can find it in the ‘’ tag.

It will show like this or similar code:


Then you just need to add ‘if customer’, it won’t show. Refer code:

{% if customer %}
  
{% endif %}

Hope it helps!