I have tried implementing this on the latest Phoenix 22.214.171.124 and there are some issues with it. It correctly changes the buy button to a colour and with the no stock text, but it also changes all the other buy buttons where there is stock to the same colour without any text/image. The buttons for the in stock items are active so it appears to be just a display issue. It also effects the other buttons on the page, for instance, the index page with the contact us and existing customers log in buttons that also become red with no text.
Has anyone else seen this behaviour?
If i only have in stock items, then the buttons behave as expected
Is there another way to disable the "buy now" and "add to cart buttons" when the item is out of stock?