How to hide prices for sold out products? And how to change display at collection page of Prestige?

Hello,
I was looking for the same question and tried to modify many times.
But I couldn’t them.

I would like to hide price of sold out at collection page and product page.

Regarding collection page, I would like to hide “sold out” on the image, and I would like to show “SOLD OUT” instead of the price.

I’m using the Prestige theme.
I attached image of my ideal.
Sorry to bother you, could you please help me?
I appreciate your cooperation.

Hii, @goldcat
Kindly share Your store URL so,
I can solve this issue.
Thank You.

Hello, @Zworthkey

Thank you very much for your prompt response!
This time is my first posted, so I don’t know how to share.
I’m sorry… Where can I foind the share?

@goldcat
Like this screenshot.

Screenshot_2021-10-16_12-48-56 (1).png

Thank You.

@goldcat

How proficient are you in liquid?

You should add the following code to:

{% if product.available %}

/--Price Code--\

{% endif %}

1] product-form.liquid file use for collection page

2] product-template.liquid use for product page

Please share this two file code to me i will checked code and modifying and you will update this code your file .

Let me know
what do you think about this