I also tried using the code (with the cost of 321,000.00) and unfortunately the price was still showing and not as POA.
This is the old code we used to use up until a couple of days ago, it changed the price to POA and hid the add to cart button:
<script type='text/javascript'>
//Where products have 321,000.00 price, change to POA
window.onload=function(){
var elements = document.querySelectorAll('.product-price .sqs-money-native');
Array.prototype.forEach.call(elements, function (price) {
if (price.textContent === '321,000.00') {
price.parentNode.textContent = 'POA';
for (let el of document.querySelectorAll('.sqs-add-to-cart-button-wrapper')) el.style.display = 'none';
}
});
}
</script>