magento2 – Magento 2 – Ignore file templates in the module

What is the best way to replace a template file? I have to display custom text instead of In Store and Price on the product page.

enter the description of the image here

I want to replace the template – Magento_Catalog / view / frontend / templates / product / view / type / default.phtml for In stock. However, I can not imagine what would be the good XML for that.

I have tried –


I can not know which file needs to be replaced to change the text for the price.

I would really appreciate if you could explain how to write the XML file to replace templates. Thank you!