I saw the same question for magento 1.9
but I don't know how to hide price for out of stock products in product pages for magento 2.2
.
I think i should override the 'default.phtml'
file in path
module-catalog/view/base/templates/product/price/amount
but i don't know how.
Could anyone help me?
Best Answer
You have to override the file
final_price.phtml
in your current theme.final_price.phtml
instead to have all prices cases:1)
2)
Then update the content with this :
// I added Three parts of code commented in: 1), 2), 3).