Auto hide Product option in product page

Hi All,

I am currently with CS-Cart 2.2.2 Community addition.

I have a product like this

Small = 5 (quantity)

Medium = 10 (quantity)

If someone buy small 5 items of of small size den it should be

Small = 0 (quantity)

Medium = 10 (quantity)


have a look here please for live.

Since small is default option CS-Cart shows default “Out Of stock massage” But actually there is stock still in Medium size.

Is there any option to modify something so that when any inventory goes to 0 (Here like Small size) it will hide automatically and the next option (Here like Medium) should be default.

I have tried deleting option from product. But I dont think its a good idea to track sales report. Disable is better than delete.

Please Help