Packaged product – Package / Configurable availability

Is there a way to see the dynamic availability for the package and the configurable product?


The configurable product X has availability in stock;

the associated product Y (associated with X) has availability out of stock;

the associated product Z (associated with X) has availability in stock;

I would like that if I choose the associated prodcut Z, it remains available in stock, as configurable, but if I choose the associated product Y, the availability change to exhausted.

I use magento 1.9.3 ultimate theme

P.S. I try with configurable samples, but the site slows down a lot