cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9 prevent select of unavailable configuration.

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Magento 1.9 prevent select of unavailable configuration.

In magento when using configurable swatches for my configurable product options, I don't want unavailable options to be selectable. So, for example configurable product is a t-shirt, and it has two options: size and type.

 

size has small and large options.

 

type has  1, 2, and 3.

 

size small is available with only type 1, but large you can choose options 2 or 3.

 

So as a user if I click swatch for size small to select this size, below swatches for type 2 and 3 are slighlty made to be opaque and a grey stroke through them, all good and well. But, they are still selectable and I can go and select type 2 or 3. 

 

So, is there a way I could get it to work so if size small selected only type 1 swatch is selectable and vice versa?