Hiding specific product prices from search results

There are specific products on my site that are not yet for sale (and therefore do not have set prices). I currently have them listed as $999.99 on the backend and have hidden that price and all purchase options from the site. However, when you search for the product on the site, the price shows. Is there a way to hide prices in search results for only specific products?

I am using IMPACT theme and site url is: https://denovadetect.com/

First, tag the products you want to hide the price for with hide-price. Then, edit your search results template to hide the price for those tagged products.

Find the search.liquid template or the section that renders search results.

{% for result in search.results %}
  {% if result.object_type == 'product' %}
    
      ## {{ result.title }}
      {% assign product = all_products[result.handle] %}
      {% unless product.tags contains 'hide-price' %}
        

{{ result.price | money }}

      {% endunless %}
    

  {% endif %}
{% endfor %}

This checks if the product has the hide-price tag and hides the price if it does

hope this helps!