Hello ,
       I would like to change the add to cart button to pre-Order if stock qty for that particular attribute combination =0 when inventory tracking method is "Track by product attributes". As i can see " ProductDetails_AttributeChange " method is called when we change the product attributes form UI.

Let's say i have Red shoes with size 7 and 8. If size 8 stock qty =0 i want to display pre order instead to add to cart when allowed out of cart is set to true. How can this be achieved ??